import {request, getDomain, setDomain} from './request.js'

/*==========================================================
 *                    系统接口文档，如果需要，可以覆盖Swagger配置进行自定义配置
 ==========================================================*/
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listAdvertisements
* url: listAdvertisementsURL
* method: listAdvertisements_TYPE
* raw_url: listAdvertisements_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchTitle - 查询条件:广告标题，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listAdvertisements = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listAdvertisements_RAW_URL = function() {
  return '/api/advertisements'
}
export const listAdvertisements_TYPE = function() {
  return 'get'
}
export const listAdvertisementsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createAdvertisement
 * url: createAdvertisementURL
 * method: createAdvertisement_TYPE
 * raw_url: createAdvertisement_RAW_URL
 * @param body - 实体参数
 */
export const createAdvertisement = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createAdvertisement_RAW_URL = function() {
  return '/api/advertisements'
}
export const createAdvertisement_TYPE = function() {
  return 'post'
}
export const createAdvertisementURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadAdvertisementById
 * url: loadAdvertisementByIdURL
 * method: loadAdvertisementById_TYPE
 * raw_url: loadAdvertisementById_RAW_URL
 * @param id - ID
 */
export const loadAdvertisementById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadAdvertisementById_RAW_URL = function() {
  return '/api/advertisements/{id}'
}
export const loadAdvertisementById_TYPE = function() {
  return 'get'
}
export const loadAdvertisementByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateAdvertisement
 * url: updateAdvertisementURL
 * method: updateAdvertisement_TYPE
 * raw_url: updateAdvertisement_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateAdvertisement = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateAdvertisement_RAW_URL = function() {
  return '/api/advertisements/{id}'
}
export const updateAdvertisement_TYPE = function() {
  return 'put'
}
export const updateAdvertisementURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteAdvertisementById
 * url: deleteAdvertisementByIdURL
 * method: deleteAdvertisementById_TYPE
 * raw_url: deleteAdvertisementById_RAW_URL
 * @param id - ID
 */
export const deleteAdvertisementById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteAdvertisementById_RAW_URL = function() {
  return '/api/advertisements/{id}'
}
export const deleteAdvertisementById_TYPE = function() {
  return 'delete'
}
export const deleteAdvertisementByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: disableAdvertisementById
 * url: disableAdvertisementByIdURL
 * method: disableAdvertisementById_TYPE
 * raw_url: disableAdvertisementById_RAW_URL
 * @param id - ID
 */
export const disableAdvertisementById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableAdvertisementById_RAW_URL = function() {
  return '/api/advertisements/{id}/disable'
}
export const disableAdvertisementById_TYPE = function() {
  return 'put'
}
export const disableAdvertisementByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: enableAdvertisementById
 * url: enableAdvertisementByIdURL
 * method: enableAdvertisementById_TYPE
 * raw_url: enableAdvertisementById_RAW_URL
 * @param id - ID
 */
export const enableAdvertisementById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/advertisements/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableAdvertisementById_RAW_URL = function() {
  return '/api/advertisements/{id}/enable'
}
export const enableAdvertisementById_TYPE = function() {
  return 'put'
}
export const enableAdvertisementByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/advertisements/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listApplications
* url: listApplicationsURL
* method: listApplications_TYPE
* raw_url: listApplications_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:应用代码，精准匹配
     * @param searchName - 查询条件:应用名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listApplications = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listApplications_RAW_URL = function() {
  return '/api/applications'
}
export const listApplications_TYPE = function() {
  return 'get'
}
export const listApplicationsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createApplication
 * url: createApplicationURL
 * method: createApplication_TYPE
 * raw_url: createApplication_RAW_URL
 * @param body - 实体参数
 */
export const createApplication = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createApplication_RAW_URL = function() {
  return '/api/applications'
}
export const createApplication_TYPE = function() {
  return 'post'
}
export const createApplicationURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为列表，失败：code!=200
* request: listAllApplications
* url: listAllApplicationsURL
* method: listAllApplications_TYPE
* raw_url: listAllApplications_RAW_URL
     * @param searchCode - 查询条件:应用代码，精准匹配
     * @param searchName - 查询条件:应用名称，模糊匹配
*/
export const listAllApplications = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listAllApplications_RAW_URL = function() {
  return '/api/applications/all'
}
export const listAllApplications_TYPE = function() {
  return 'get'
}
export const listAllApplicationsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications/all'
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadApplicationById
 * url: loadApplicationByIdURL
 * method: loadApplicationById_TYPE
 * raw_url: loadApplicationById_RAW_URL
 * @param id - ID
 */
export const loadApplicationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadApplicationById_RAW_URL = function() {
  return '/api/applications/{id}'
}
export const loadApplicationById_TYPE = function() {
  return 'get'
}
export const loadApplicationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateApplication
 * url: updateApplicationURL
 * method: updateApplication_TYPE
 * raw_url: updateApplication_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateApplication = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateApplication_RAW_URL = function() {
  return '/api/applications/{id}'
}
export const updateApplication_TYPE = function() {
  return 'put'
}
export const updateApplicationURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteApplicationById
 * url: deleteApplicationByIdURL
 * method: deleteApplicationById_TYPE
 * raw_url: deleteApplicationById_RAW_URL
 * @param id - ID
 */
export const deleteApplicationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/applications/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteApplicationById_RAW_URL = function() {
  return '/api/applications/{id}'
}
export const deleteApplicationById_TYPE = function() {
  return 'delete'
}
export const deleteApplicationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/applications/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listAreas
* url: listAreasURL
* method: listAreas_TYPE
* raw_url: listAreas_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchAreaLevel - 查询条件:等级，等于
     * @param searchCode - 查询条件:区域编码，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，等于
     * @param searchName - 查询条件:区域名称，模糊匹配
     * @param searchParentCode - 查询条件:上级编码，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listAreas = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAreaLevel'] !== undefined) {
    queryParameters['search_areaLevel'] = parameters['searchAreaLevel']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listAreas_RAW_URL = function() {
  return '/api/areas'
}
export const listAreas_TYPE = function() {
  return 'get'
}
export const listAreasURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAreaLevel'] !== undefined) {
    queryParameters['search_areaLevel'] = parameters['searchAreaLevel']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createArea
 * url: createAreaURL
 * method: createArea_TYPE
 * raw_url: createArea_RAW_URL
 * @param body - 实体参数
 */
export const createArea = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createArea_RAW_URL = function() {
  return '/api/areas'
}
export const createArea_TYPE = function() {
  return 'post'
}
export const createAreaURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadAreaById
 * url: loadAreaByIdURL
 * method: loadAreaById_TYPE
 * raw_url: loadAreaById_RAW_URL
 * @param id - ID
 */
export const loadAreaById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadAreaById_RAW_URL = function() {
  return '/api/areas/{id}'
}
export const loadAreaById_TYPE = function() {
  return 'get'
}
export const loadAreaByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateArea
 * url: updateAreaURL
 * method: updateArea_TYPE
 * raw_url: updateArea_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateArea = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateArea_RAW_URL = function() {
  return '/api/areas/{id}'
}
export const updateArea_TYPE = function() {
  return 'put'
}
export const updateAreaURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteAreaById
 * url: deleteAreaByIdURL
 * method: deleteAreaById_TYPE
 * raw_url: deleteAreaById_RAW_URL
 * @param id - ID
 */
export const deleteAreaById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteAreaById_RAW_URL = function() {
  return '/api/areas/{id}'
}
export const deleteAreaById_TYPE = function() {
  return 'delete'
}
export const deleteAreaByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableAreaById
 * url: disableAreaByIdURL
 * method: disableAreaById_TYPE
 * raw_url: disableAreaById_RAW_URL
 * @param id - ID
 */
export const disableAreaById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableAreaById_RAW_URL = function() {
  return '/api/areas/{id}/disable'
}
export const disableAreaById_TYPE = function() {
  return 'put'
}
export const disableAreaByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableAreaById
 * url: enableAreaByIdURL
 * method: enableAreaById_TYPE
 * raw_url: enableAreaById_RAW_URL
 * @param id - ID
 */
export const enableAreaById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/areas/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableAreaById_RAW_URL = function() {
  return '/api/areas/{id}/enable'
}
export const enableAreaById_TYPE = function() {
  return 'put'
}
export const enableAreaByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/areas/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createAttachment
 * url: createAttachmentURL
 * method: createAttachment_TYPE
 * raw_url: createAttachment_RAW_URL
 * @param attachment - attachment
 */
export const createAttachment = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/attachments'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['attachment'] !== undefined) {
    form['attachment'] = parameters['attachment']
  }
  if (parameters['attachment'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: attachment'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createAttachment_RAW_URL = function() {
  return '/api/attachments'
}
export const createAttachment_TYPE = function() {
  return 'post'
}
export const createAttachmentURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/attachments'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为结果数据，失败：code!=200
 * request: deleteAttachment
 * url: deleteAttachmentURL
 * method: deleteAttachment_TYPE
 * raw_url: deleteAttachment_RAW_URL
 * @param param0 - param0
 */
export const deleteAttachment = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/attachments'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['param0'] !== undefined) {
    body = parameters['param0']
  }
  if (parameters['param0'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: param0'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteAttachment_RAW_URL = function() {
  return '/api/attachments'
}
export const deleteAttachment_TYPE = function() {
  return 'delete'
}
export const deleteAttachmentURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/attachments'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序字段：type,mappingMethod,mappingUrl,userName,requestMethod,requestUrl,createTime
成功：code=200，data对象为包含分页信息的业务日志列表，失败：code!=200
* request: listBusinessLogs
* url: listBusinessLogsURL
* method: listBusinessLogs_TYPE
* raw_url: listBusinessLogs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchArguments - 查询条件:请求参数，模糊匹配
     * @param searchContent - 查询条件:日志内容，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchIp - 查询条件:客户端IP地址，模糊匹配
     * @param searchMappingMethod - 查询条件:映射请求方式，模糊匹配
     * @param searchMappingUrl - 查询条件:映射URL地址，模糊匹配
     * @param searchRequestMethod - 查询条件:映射请求方式，精确匹配
     * @param searchRequestUrl - 查询条件:映射URL地址，模糊匹配
     * @param searchReturnValue - 查询条件:返回值，模糊匹配
     * @param searchType - 查询条件:日志类型，精确匹配
     * @param searchUserId - 查询条件:日志用户ID，精确匹配
     * @param searchUserName - 查询条件:日志用户名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listBusinessLogs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/businessLogs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchArguments'] !== undefined) {
    queryParameters['search_arguments'] = parameters['searchArguments']
  }
  if (parameters['searchContent'] !== undefined) {
    queryParameters['search_content'] = parameters['searchContent']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchIp'] !== undefined) {
    queryParameters['search_ip'] = parameters['searchIp']
  }
  if (parameters['searchMappingMethod'] !== undefined) {
    queryParameters['search_mappingMethod'] = parameters['searchMappingMethod']
  }
  if (parameters['searchMappingUrl'] !== undefined) {
    queryParameters['search_mappingUrl'] = parameters['searchMappingUrl']
  }
  if (parameters['searchRequestMethod'] !== undefined) {
    queryParameters['search_requestMethod'] = parameters['searchRequestMethod']
  }
  if (parameters['searchRequestUrl'] !== undefined) {
    queryParameters['search_requestUrl'] = parameters['searchRequestUrl']
  }
  if (parameters['searchReturnValue'] !== undefined) {
    queryParameters['search_returnValue'] = parameters['searchReturnValue']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUserId'] !== undefined) {
    queryParameters['search_userId'] = parameters['searchUserId']
  }
  if (parameters['searchUserName'] !== undefined) {
    queryParameters['search_userName'] = parameters['searchUserName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listBusinessLogs_RAW_URL = function() {
  return '/api/businessLogs'
}
export const listBusinessLogs_TYPE = function() {
  return 'get'
}
export const listBusinessLogsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/businessLogs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchArguments'] !== undefined) {
    queryParameters['search_arguments'] = parameters['searchArguments']
  }
  if (parameters['searchContent'] !== undefined) {
    queryParameters['search_content'] = parameters['searchContent']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchIp'] !== undefined) {
    queryParameters['search_ip'] = parameters['searchIp']
  }
  if (parameters['searchMappingMethod'] !== undefined) {
    queryParameters['search_mappingMethod'] = parameters['searchMappingMethod']
  }
  if (parameters['searchMappingUrl'] !== undefined) {
    queryParameters['search_mappingUrl'] = parameters['searchMappingUrl']
  }
  if (parameters['searchRequestMethod'] !== undefined) {
    queryParameters['search_requestMethod'] = parameters['searchRequestMethod']
  }
  if (parameters['searchRequestUrl'] !== undefined) {
    queryParameters['search_requestUrl'] = parameters['searchRequestUrl']
  }
  if (parameters['searchReturnValue'] !== undefined) {
    queryParameters['search_returnValue'] = parameters['searchReturnValue']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUserId'] !== undefined) {
    queryParameters['search_userId'] = parameters['searchUserId']
  }
  if (parameters['searchUserName'] !== undefined) {
    queryParameters['search_userName'] = parameters['searchUserName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetBinFaults
* url: listCabinetBinFaultsURL
* method: listCabinetBinFaults_TYPE
* raw_url: listCabinetBinFaults_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchFaultCode - 查询条件:故障编码，等于
     * @param searchFaultName - 查询条件:名称
     * @param searchFlag - 查询条件:1:历史2:现场
     * @param searchKeyWord - 查询条件:编码/名称，模糊匹配
     * @param searchNetworkId - 查询条件:场站ID，等于
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
     * @param searchReceiveTimeBegin - 查询条件:数据接收开始时间，大于等于
     * @param searchReceiveTimeEnd - 查询条件:数据结束接收时间，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetBinFaults = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-bin-faults'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchFaultCode'] !== undefined) {
    queryParameters['search_faultCode'] = parameters['searchFaultCode']
  }
  if (parameters['searchFaultName'] !== undefined) {
    queryParameters['search_faultName'] = parameters['searchFaultName']
  }
  if (parameters['searchFlag'] !== undefined) {
    queryParameters['search_flag'] = parameters['searchFlag']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchReceiveTimeBegin'] !== undefined) {
    queryParameters['search_receiveTimeBegin'] = parameters['searchReceiveTimeBegin']
  }
  if (parameters['searchReceiveTimeEnd'] !== undefined) {
    queryParameters['search_receiveTimeEnd'] = parameters['searchReceiveTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetBinFaults_RAW_URL = function() {
  return '/api/cabinet-bin-faults'
}
export const listCabinetBinFaults_TYPE = function() {
  return 'get'
}
export const listCabinetBinFaultsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-bin-faults'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchFaultCode'] !== undefined) {
    queryParameters['search_faultCode'] = parameters['searchFaultCode']
  }
  if (parameters['searchFaultName'] !== undefined) {
    queryParameters['search_faultName'] = parameters['searchFaultName']
  }
  if (parameters['searchFlag'] !== undefined) {
    queryParameters['search_flag'] = parameters['searchFlag']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchReceiveTimeBegin'] !== undefined) {
    queryParameters['search_receiveTimeBegin'] = parameters['searchReceiveTimeBegin']
  }
  if (parameters['searchReceiveTimeEnd'] !== undefined) {
    queryParameters['search_receiveTimeEnd'] = parameters['searchReceiveTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetBinFaultById
 * url: loadCabinetBinFaultByIdURL
 * method: loadCabinetBinFaultById_TYPE
 * raw_url: loadCabinetBinFaultById_RAW_URL
 * @param id - ID
 */
export const loadCabinetBinFaultById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-bin-faults/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetBinFaultById_RAW_URL = function() {
  return '/api/cabinet-bin-faults/{id}'
}
export const loadCabinetBinFaultById_TYPE = function() {
  return 'get'
}
export const loadCabinetBinFaultByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-bin-faults/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetBinById
 * url: loadCabinetBinByIdURL
 * method: loadCabinetBinById_TYPE
 * raw_url: loadCabinetBinById_RAW_URL
 * @param id - ID
 */
export const loadCabinetBinById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-bins/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetBinById_RAW_URL = function() {
  return '/api/cabinet-bins/{id}'
}
export const loadCabinetBinById_TYPE = function() {
  return 'get'
}
export const loadCabinetBinByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-bins/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetControlLogs
* url: listCabinetControlLogsURL
* method: listCabinetControlLogs_TYPE
* raw_url: listCabinetControlLogs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCabinet - 查询条件:充电柜编码，等于
     * @param searchControlCmd - 查询条件:命令号，等于
     * @param searchControlName - 查询条件:名称，模糊匹配
     * @param searchControlTimeBegin - 查询条件:操作时间始，大于等于
     * @param searchControlTimeEnd - 查询条件:操作时间止，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetControlLogs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-control-logs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinet'] !== undefined) {
    queryParameters['search_cabinet'] = parameters['searchCabinet']
  }
  if (parameters['searchControlCmd'] !== undefined) {
    queryParameters['search_controlCmd'] = parameters['searchControlCmd']
  }
  if (parameters['searchControlName'] !== undefined) {
    queryParameters['search_controlName'] = parameters['searchControlName']
  }
  if (parameters['searchControlTimeBegin'] !== undefined) {
    queryParameters['search_controlTimeBegin'] = parameters['searchControlTimeBegin']
  }
  if (parameters['searchControlTimeEnd'] !== undefined) {
    queryParameters['search_controlTimeEnd'] = parameters['searchControlTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetControlLogs_RAW_URL = function() {
  return '/api/cabinet-control-logs'
}
export const listCabinetControlLogs_TYPE = function() {
  return 'get'
}
export const listCabinetControlLogsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-control-logs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinet'] !== undefined) {
    queryParameters['search_cabinet'] = parameters['searchCabinet']
  }
  if (parameters['searchControlCmd'] !== undefined) {
    queryParameters['search_controlCmd'] = parameters['searchControlCmd']
  }
  if (parameters['searchControlName'] !== undefined) {
    queryParameters['search_controlName'] = parameters['searchControlName']
  }
  if (parameters['searchControlTimeBegin'] !== undefined) {
    queryParameters['search_controlTimeBegin'] = parameters['searchControlTimeBegin']
  }
  if (parameters['searchControlTimeEnd'] !== undefined) {
    queryParameters['search_controlTimeEnd'] = parameters['searchControlTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadCabinetControlLogById
 * url: loadCabinetControlLogByIdURL
 * method: loadCabinetControlLogById_TYPE
 * raw_url: loadCabinetControlLogById_RAW_URL
 * @param id - ID
 */
export const loadCabinetControlLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-control-logs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetControlLogById_RAW_URL = function() {
  return '/api/cabinet-control-logs/{id}'
}
export const loadCabinetControlLogById_TYPE = function() {
  return 'get'
}
export const loadCabinetControlLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-control-logs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetFaults
* url: listCabinetFaultsURL
* method: listCabinetFaults_TYPE
* raw_url: listCabinetFaults_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchFaultCode - 查询条件:故障编码，等于
     * @param searchKeyWord - 查询条件:编码/名称，模糊匹配
     * @param searchNetworkId - 查询条件:场站ID，等于
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
     * @param searchReceiveTimeBegin - 查询条件:数据接收开始时间，大于等于
     * @param searchReceiveTimeEnd - 查询条件:数据结束接收时间，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetFaults = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-faults'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchFaultCode'] !== undefined) {
    queryParameters['search_faultCode'] = parameters['searchFaultCode']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchReceiveTimeBegin'] !== undefined) {
    queryParameters['search_receiveTimeBegin'] = parameters['searchReceiveTimeBegin']
  }
  if (parameters['searchReceiveTimeEnd'] !== undefined) {
    queryParameters['search_receiveTimeEnd'] = parameters['searchReceiveTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetFaults_RAW_URL = function() {
  return '/api/cabinet-faults'
}
export const listCabinetFaults_TYPE = function() {
  return 'get'
}
export const listCabinetFaultsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-faults'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchFaultCode'] !== undefined) {
    queryParameters['search_faultCode'] = parameters['searchFaultCode']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchReceiveTimeBegin'] !== undefined) {
    queryParameters['search_receiveTimeBegin'] = parameters['searchReceiveTimeBegin']
  }
  if (parameters['searchReceiveTimeEnd'] !== undefined) {
    queryParameters['search_receiveTimeEnd'] = parameters['searchReceiveTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetFaultById
 * url: loadCabinetFaultByIdURL
 * method: loadCabinetFaultById_TYPE
 * raw_url: loadCabinetFaultById_RAW_URL
 * @param id - ID
 */
export const loadCabinetFaultById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-faults/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetFaultById_RAW_URL = function() {
  return '/api/cabinet-faults/{id}'
}
export const loadCabinetFaultById_TYPE = function() {
  return 'get'
}
export const loadCabinetFaultByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-faults/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetGatewayLogs
* url: listCabinetGatewayLogsURL
* method: listCabinetGatewayLogs_TYPE
* raw_url: listCabinetGatewayLogs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCabinetCode - 查询条件:充电柜编码，模糊查询
     * @param searchLogCmd - 查询条件:命令字，等于
     * @param searchLogTimeBegin - 查询条件:数据时间始，大于等于
     * @param searchLogTimeEnd - 查询条件:数据时间止，小于等于
     * @param searchTableName - 查询条件:日志的日期，格式：20220101，表名：charging_cabinet_gateway_log_20220101
     * @param searchType - 查询条件:类型，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetGatewayLogs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-gateway-logs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchLogCmd'] !== undefined) {
    queryParameters['search_logCmd'] = parameters['searchLogCmd']
  }
  if (parameters['searchLogTimeBegin'] !== undefined) {
    queryParameters['search_logTimeBegin'] = parameters['searchLogTimeBegin']
  }
  if (parameters['searchLogTimeEnd'] !== undefined) {
    queryParameters['search_logTimeEnd'] = parameters['searchLogTimeEnd']
  }
  if (parameters['searchTableName'] !== undefined) {
    queryParameters['search_tableName'] = parameters['searchTableName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetGatewayLogs_RAW_URL = function() {
  return '/api/cabinet-gateway-logs'
}
export const listCabinetGatewayLogs_TYPE = function() {
  return 'get'
}
export const listCabinetGatewayLogsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-gateway-logs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchLogCmd'] !== undefined) {
    queryParameters['search_logCmd'] = parameters['searchLogCmd']
  }
  if (parameters['searchLogTimeBegin'] !== undefined) {
    queryParameters['search_logTimeBegin'] = parameters['searchLogTimeBegin']
  }
  if (parameters['searchLogTimeEnd'] !== undefined) {
    queryParameters['search_logTimeEnd'] = parameters['searchLogTimeEnd']
  }
  if (parameters['searchTableName'] !== undefined) {
    queryParameters['search_tableName'] = parameters['searchTableName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetGatewayLogById
 * url: loadCabinetGatewayLogByIdURL
 * method: loadCabinetGatewayLogById_TYPE
 * raw_url: loadCabinetGatewayLogById_RAW_URL
 * @param id - ID
 */
export const loadCabinetGatewayLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-gateway-logs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetGatewayLogById_RAW_URL = function() {
  return '/api/cabinet-gateway-logs/{id}'
}
export const loadCabinetGatewayLogById_TYPE = function() {
  return 'get'
}
export const loadCabinetGatewayLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-gateway-logs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetModels
* url: listCabinetModelsURL
* method: listCabinetModels_TYPE
* raw_url: listCabinetModels_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:型号编码，等于
     * @param searchName - 查询条件:型号名称，模糊匹配
     * @param searchTypeId - 查询条件:设备类型ID，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetModels = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchTypeId'] !== undefined) {
    queryParameters['search_typeId'] = parameters['searchTypeId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetModels_RAW_URL = function() {
  return '/api/cabinet-models'
}
export const listCabinetModels_TYPE = function() {
  return 'get'
}
export const listCabinetModelsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchTypeId'] !== undefined) {
    queryParameters['search_typeId'] = parameters['searchTypeId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinetModel
 * url: createCabinetModelURL
 * method: createCabinetModel_TYPE
 * raw_url: createCabinetModel_RAW_URL
 * @param body - 实体参数
 */
export const createCabinetModel = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinetModel_RAW_URL = function() {
  return '/api/cabinet-models'
}
export const createCabinetModel_TYPE = function() {
  return 'post'
}
export const createCabinetModelURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为充电柜型号列表，失败：code!=200
* request: allCabinetModels
* url: allCabinetModelsURL
* method: allCabinetModels_TYPE
* raw_url: allCabinetModels_RAW_URL
*/
export const allCabinetModels = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const allCabinetModels_RAW_URL = function() {
  return '/api/cabinet-models/all'
}
export const allCabinetModels_TYPE = function() {
  return 'get'
}
export const allCabinetModelsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/all'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetModelById
 * url: loadCabinetModelByIdURL
 * method: loadCabinetModelById_TYPE
 * raw_url: loadCabinetModelById_RAW_URL
 * @param id - ID
 */
export const loadCabinetModelById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetModelById_RAW_URL = function() {
  return '/api/cabinet-models/{id}'
}
export const loadCabinetModelById_TYPE = function() {
  return 'get'
}
export const loadCabinetModelByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinetModel
 * url: updateCabinetModelURL
 * method: updateCabinetModel_TYPE
 * raw_url: updateCabinetModel_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCabinetModel = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinetModel_RAW_URL = function() {
  return '/api/cabinet-models/{id}'
}
export const updateCabinetModel_TYPE = function() {
  return 'put'
}
export const updateCabinetModelURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteCabinetModelById
 * url: deleteCabinetModelByIdURL
 * method: deleteCabinetModelById_TYPE
 * raw_url: deleteCabinetModelById_RAW_URL
 * @param id - ID
 */
export const deleteCabinetModelById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetModelById_RAW_URL = function() {
  return '/api/cabinet-models/{id}'
}
export const deleteCabinetModelById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetModelByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableCabinetModelById
 * url: disableCabinetModelByIdURL
 * method: disableCabinetModelById_TYPE
 * raw_url: disableCabinetModelById_RAW_URL
 * @param id - ID
 */
export const disableCabinetModelById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableCabinetModelById_RAW_URL = function() {
  return '/api/cabinet-models/{id}/disable'
}
export const disableCabinetModelById_TYPE = function() {
  return 'put'
}
export const disableCabinetModelByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableCabinetModelById
 * url: enableCabinetModelByIdURL
 * method: enableCabinetModelById_TYPE
 * raw_url: enableCabinetModelById_RAW_URL
 * @param id - ID
 */
export const enableCabinetModelById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-models/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableCabinetModelById_RAW_URL = function() {
  return '/api/cabinet-models/{id}/enable'
}
export const enableCabinetModelById_TYPE = function() {
  return 'put'
}
export const enableCabinetModelByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-models/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetMqttLogs
* url: listCabinetMqttLogsURL
* method: listCabinetMqttLogs_TYPE
* raw_url: listCabinetMqttLogs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:code，等于
     * @param searchCommand - 查询条件:command，等于
     * @param searchCreateTime - 查询条件:create_time，等于
     * @param searchMsgContent - 查询条件:msg_content，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetMqttLogs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-mqtt-logs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCommand'] !== undefined) {
    queryParameters['search_command'] = parameters['searchCommand']
  }
  if (parameters['searchCreateTime'] !== undefined) {
    queryParameters['search_createTime'] = parameters['searchCreateTime']
  }
  if (parameters['searchMsgContent'] !== undefined) {
    queryParameters['search_msgContent'] = parameters['searchMsgContent']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetMqttLogs_RAW_URL = function() {
  return '/api/cabinet-mqtt-logs'
}
export const listCabinetMqttLogs_TYPE = function() {
  return 'get'
}
export const listCabinetMqttLogsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-mqtt-logs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCommand'] !== undefined) {
    queryParameters['search_command'] = parameters['searchCommand']
  }
  if (parameters['searchCreateTime'] !== undefined) {
    queryParameters['search_createTime'] = parameters['searchCreateTime']
  }
  if (parameters['searchMsgContent'] !== undefined) {
    queryParameters['search_msgContent'] = parameters['searchMsgContent']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinetMqttLog
 * url: createCabinetMqttLogURL
 * method: createCabinetMqttLog_TYPE
 * raw_url: createCabinetMqttLog_RAW_URL
 * @param body - 实体参数
 */
export const createCabinetMqttLog = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-mqtt-logs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinetMqttLog_RAW_URL = function() {
  return '/api/cabinet-mqtt-logs'
}
export const createCabinetMqttLog_TYPE = function() {
  return 'post'
}
export const createCabinetMqttLogURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-mqtt-logs'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetMqttLogById
 * url: loadCabinetMqttLogByIdURL
 * method: loadCabinetMqttLogById_TYPE
 * raw_url: loadCabinetMqttLogById_RAW_URL
 * @param id - ID
 */
export const loadCabinetMqttLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-mqtt-logs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetMqttLogById_RAW_URL = function() {
  return '/api/cabinet-mqtt-logs/{id}'
}
export const loadCabinetMqttLogById_TYPE = function() {
  return 'get'
}
export const loadCabinetMqttLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-mqtt-logs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinetMqttLog
 * url: updateCabinetMqttLogURL
 * method: updateCabinetMqttLog_TYPE
 * raw_url: updateCabinetMqttLog_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCabinetMqttLog = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-mqtt-logs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinetMqttLog_RAW_URL = function() {
  return '/api/cabinet-mqtt-logs/{id}'
}
export const updateCabinetMqttLog_TYPE = function() {
  return 'put'
}
export const updateCabinetMqttLogURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-mqtt-logs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteCabinetMqttLogById
 * url: deleteCabinetMqttLogByIdURL
 * method: deleteCabinetMqttLogById_TYPE
 * raw_url: deleteCabinetMqttLogById_RAW_URL
 * @param id - ID
 */
export const deleteCabinetMqttLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-mqtt-logs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetMqttLogById_RAW_URL = function() {
  return '/api/cabinet-mqtt-logs/{id}'
}
export const deleteCabinetMqttLogById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetMqttLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-mqtt-logs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetSecurities
* url: listCabinetSecuritiesURL
* method: listCabinetSecurities_TYPE
* raw_url: listCabinetSecurities_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchLoginName - 查询条件:登录用户名，模糊匹配
     * @param searchTitle - 查询条件:模板名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetSecurities = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchLoginName'] !== undefined) {
    queryParameters['search_loginName'] = parameters['searchLoginName']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetSecurities_RAW_URL = function() {
  return '/api/cabinet-securities'
}
export const listCabinetSecurities_TYPE = function() {
  return 'get'
}
export const listCabinetSecuritiesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchLoginName'] !== undefined) {
    queryParameters['search_loginName'] = parameters['searchLoginName']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinetSecurity
 * url: createCabinetSecurityURL
 * method: createCabinetSecurity_TYPE
 * raw_url: createCabinetSecurity_RAW_URL
 * @param body - 实体参数
 */
export const createCabinetSecurity = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinetSecurity_RAW_URL = function() {
  return '/api/cabinet-securities'
}
export const createCabinetSecurity_TYPE = function() {
  return 'post'
}
export const createCabinetSecurityURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为充电柜安全模板列表，失败：code!=200
* request: allCabinetSecurities
* url: allCabinetSecuritiesURL
* method: allCabinetSecurities_TYPE
* raw_url: allCabinetSecurities_RAW_URL
*/
export const allCabinetSecurities = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const allCabinetSecurities_RAW_URL = function() {
  return '/api/cabinet-securities/all'
}
export const allCabinetSecurities_TYPE = function() {
  return 'get'
}
export const allCabinetSecuritiesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/all'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadCabinetSecurityById
 * url: loadCabinetSecurityByIdURL
 * method: loadCabinetSecurityById_TYPE
 * raw_url: loadCabinetSecurityById_RAW_URL
 * @param id - ID
 */
export const loadCabinetSecurityById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetSecurityById_RAW_URL = function() {
  return '/api/cabinet-securities/{id}'
}
export const loadCabinetSecurityById_TYPE = function() {
  return 'get'
}
export const loadCabinetSecurityByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinetSecurity
 * url: updateCabinetSecurityURL
 * method: updateCabinetSecurity_TYPE
 * raw_url: updateCabinetSecurity_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCabinetSecurity = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinetSecurity_RAW_URL = function() {
  return '/api/cabinet-securities/{id}'
}
export const updateCabinetSecurity_TYPE = function() {
  return 'put'
}
export const updateCabinetSecurityURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteCabinetSecurityById
 * url: deleteCabinetSecurityByIdURL
 * method: deleteCabinetSecurityById_TYPE
 * raw_url: deleteCabinetSecurityById_RAW_URL
 * @param id - ID
 */
export const deleteCabinetSecurityById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetSecurityById_RAW_URL = function() {
  return '/api/cabinet-securities/{id}'
}
export const deleteCabinetSecurityById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetSecurityByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableCabinetSecurityById
 * url: disableCabinetSecurityByIdURL
 * method: disableCabinetSecurityById_TYPE
 * raw_url: disableCabinetSecurityById_RAW_URL
 * @param id - ID
 */
export const disableCabinetSecurityById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableCabinetSecurityById_RAW_URL = function() {
  return '/api/cabinet-securities/{id}/disable'
}
export const disableCabinetSecurityById_TYPE = function() {
  return 'put'
}
export const disableCabinetSecurityByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableCabinetSecurityById
 * url: enableCabinetSecurityByIdURL
 * method: enableCabinetSecurityById_TYPE
 * raw_url: enableCabinetSecurityById_RAW_URL
 * @param id - ID
 */
export const enableCabinetSecurityById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-securities/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableCabinetSecurityById_RAW_URL = function() {
  return '/api/cabinet-securities/{id}/enable'
}
export const enableCabinetSecurityById_TYPE = function() {
  return 'put'
}
export const enableCabinetSecurityByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-securities/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetTypes
* url: listCabinetTypesURL
* method: listCabinetTypes_TYPE
* raw_url: listCabinetTypes_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:类型编码，模糊匹配
     * @param searchName - 查询条件:类型名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetTypes = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetTypes_RAW_URL = function() {
  return '/api/cabinet-types'
}
export const listCabinetTypes_TYPE = function() {
  return 'get'
}
export const listCabinetTypesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinetType
 * url: createCabinetTypeURL
 * method: createCabinetType_TYPE
 * raw_url: createCabinetType_RAW_URL
 * @param body - 实体参数
 */
export const createCabinetType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinetType_RAW_URL = function() {
  return '/api/cabinet-types'
}
export const createCabinetType_TYPE = function() {
  return 'post'
}
export const createCabinetTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为列表，失败：code!=200
* request: allCabinetTypes
* url: allCabinetTypesURL
* method: allCabinetTypes_TYPE
* raw_url: allCabinetTypes_RAW_URL
*/
export const allCabinetTypes = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const allCabinetTypes_RAW_URL = function() {
  return '/api/cabinet-types/all'
}
export const allCabinetTypes_TYPE = function() {
  return 'get'
}
export const allCabinetTypesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/all'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为充电柜类型信息，失败：code!=0
 * request: loadCabinetTypeById
 * url: loadCabinetTypeByIdURL
 * method: loadCabinetTypeById_TYPE
 * raw_url: loadCabinetTypeById_RAW_URL
 * @param id - ID
 */
export const loadCabinetTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetTypeById_RAW_URL = function() {
  return '/api/cabinet-types/{id}'
}
export const loadCabinetTypeById_TYPE = function() {
  return 'get'
}
export const loadCabinetTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinetType
 * url: updateCabinetTypeURL
 * method: updateCabinetType_TYPE
 * raw_url: updateCabinetType_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCabinetType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinetType_RAW_URL = function() {
  return '/api/cabinet-types/{id}'
}
export const updateCabinetType_TYPE = function() {
  return 'put'
}
export const updateCabinetTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteCabinetTypeById
 * url: deleteCabinetTypeByIdURL
 * method: deleteCabinetTypeById_TYPE
 * raw_url: deleteCabinetTypeById_RAW_URL
 * @param id - ID
 */
export const deleteCabinetTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetTypeById_RAW_URL = function() {
  return '/api/cabinet-types/{id}'
}
export const deleteCabinetTypeById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableCabinetTypeById
 * url: disableCabinetTypeByIdURL
 * method: disableCabinetTypeById_TYPE
 * raw_url: disableCabinetTypeById_RAW_URL
 * @param id - ID
 */
export const disableCabinetTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableCabinetTypeById_RAW_URL = function() {
  return '/api/cabinet-types/{id}/disable'
}
export const disableCabinetTypeById_TYPE = function() {
  return 'put'
}
export const disableCabinetTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableCabinetTypeById
 * url: enableCabinetTypeByIdURL
 * method: enableCabinetTypeById_TYPE
 * raw_url: enableCabinetTypeById_RAW_URL
 * @param id - ID
 */
export const enableCabinetTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinet-types/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableCabinetTypeById_RAW_URL = function() {
  return '/api/cabinet-types/{id}/enable'
}
export const enableCabinetTypeById_TYPE = function() {
  return 'put'
}
export const enableCabinetTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinet-types/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的充电柜升级日志表列表，失败：code!=200
* request: listCabinetUpgradeLogs
* url: listCabinetUpgradeLogsURL
* method: listCabinetUpgradeLogs_TYPE
* raw_url: listCabinetUpgradeLogs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCabinet - 查询条件:充电柜id，等于
     * @param searchFailureReason - 查询条件:失败原因，等于
     * @param searchNowVersion - 查询条件:当前版本，等于
     * @param searchReceiveTime - 查询条件:接收时间，等于
     * @param searchUpgradeResult - 查询条件:升级结果，等于
     * @param searchUpgradeVersion - 查询条件:升级版本，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetUpgradeLogs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinetUpgradeLogs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinet'] !== undefined) {
    queryParameters['search_cabinet'] = parameters['searchCabinet']
  }
  if (parameters['searchFailureReason'] !== undefined) {
    queryParameters['search_failureReason'] = parameters['searchFailureReason']
  }
  if (parameters['searchNowVersion'] !== undefined) {
    queryParameters['search_nowVersion'] = parameters['searchNowVersion']
  }
  if (parameters['searchReceiveTime'] !== undefined) {
    queryParameters['search_receiveTime'] = parameters['searchReceiveTime']
  }
  if (parameters['searchUpgradeResult'] !== undefined) {
    queryParameters['search_upgradeResult'] = parameters['searchUpgradeResult']
  }
  if (parameters['searchUpgradeVersion'] !== undefined) {
    queryParameters['search_upgradeVersion'] = parameters['searchUpgradeVersion']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetUpgradeLogs_RAW_URL = function() {
  return '/api/cabinetUpgradeLogs'
}
export const listCabinetUpgradeLogs_TYPE = function() {
  return 'get'
}
export const listCabinetUpgradeLogsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinetUpgradeLogs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinet'] !== undefined) {
    queryParameters['search_cabinet'] = parameters['searchCabinet']
  }
  if (parameters['searchFailureReason'] !== undefined) {
    queryParameters['search_failureReason'] = parameters['searchFailureReason']
  }
  if (parameters['searchNowVersion'] !== undefined) {
    queryParameters['search_nowVersion'] = parameters['searchNowVersion']
  }
  if (parameters['searchReceiveTime'] !== undefined) {
    queryParameters['search_receiveTime'] = parameters['searchReceiveTime']
  }
  if (parameters['searchUpgradeResult'] !== undefined) {
    queryParameters['search_upgradeResult'] = parameters['searchUpgradeResult']
  }
  if (parameters['searchUpgradeVersion'] !== undefined) {
    queryParameters['search_upgradeVersion'] = parameters['searchUpgradeVersion']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinetUpgradeLog
 * url: createCabinetUpgradeLogURL
 * method: createCabinetUpgradeLog_TYPE
 * raw_url: createCabinetUpgradeLog_RAW_URL
 * @param body - 充电柜升级日志表实体参数
 */
export const createCabinetUpgradeLog = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinetUpgradeLogs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinetUpgradeLog_RAW_URL = function() {
  return '/api/cabinetUpgradeLogs'
}
export const createCabinetUpgradeLog_TYPE = function() {
  return 'post'
}
export const createCabinetUpgradeLogURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinetUpgradeLogs'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为充电柜升级日志表信息，失败：code!=0
 * request: loadCabinetUpgradeLogById
 * url: loadCabinetUpgradeLogByIdURL
 * method: loadCabinetUpgradeLogById_TYPE
 * raw_url: loadCabinetUpgradeLogById_RAW_URL
 * @param id - 充电柜升级日志表ID
 */
export const loadCabinetUpgradeLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinetUpgradeLogs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetUpgradeLogById_RAW_URL = function() {
  return '/api/cabinetUpgradeLogs/{id}'
}
export const loadCabinetUpgradeLogById_TYPE = function() {
  return 'get'
}
export const loadCabinetUpgradeLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinetUpgradeLogs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinetUpgradeLog
 * url: updateCabinetUpgradeLogURL
 * method: updateCabinetUpgradeLog_TYPE
 * raw_url: updateCabinetUpgradeLog_RAW_URL
 * @param body - 充电柜升级日志表实体参数
 * @param id - 充电柜升级日志表ID
 */
export const updateCabinetUpgradeLog = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinetUpgradeLogs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinetUpgradeLog_RAW_URL = function() {
  return '/api/cabinetUpgradeLogs/{id}'
}
export const updateCabinetUpgradeLog_TYPE = function() {
  return 'put'
}
export const updateCabinetUpgradeLogURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinetUpgradeLogs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteCabinetUpgradeLogById
 * url: deleteCabinetUpgradeLogByIdURL
 * method: deleteCabinetUpgradeLogById_TYPE
 * raw_url: deleteCabinetUpgradeLogById_RAW_URL
 * @param id - 充电柜升级日志表ID
 */
export const deleteCabinetUpgradeLogById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinetUpgradeLogs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetUpgradeLogById_RAW_URL = function() {
  return '/api/cabinetUpgradeLogs/{id}'
}
export const deleteCabinetUpgradeLogById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetUpgradeLogByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinetUpgradeLogs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinets
* url: listCabinetsURL
* method: listCabinets_TYPE
* raw_url: listCabinets_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考DataRang枚举
     * @param searchIsEnable - 查询条件:是否启用，精确匹配
     * @param searchIsOnline - 查询条件:是否在线
     * @param searchKeyWord - 查询条件:编码/名称，模糊匹配
     * @param searchModelId - 查询条件:设备型号ID，等于
     * @param searchNetworkId - 查询条件:场站ID，等于
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
     * @param searchSimExpireBegin - 查询条件:SIM卡到期开始时间，大于等于
     * @param searchSimExpireEnd - 查询条件:SIM卡到期结束时间，大于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinets = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsOnline'] !== undefined) {
    queryParameters['search_isOnline'] = parameters['searchIsOnline']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchModelId'] !== undefined) {
    queryParameters['search_modelId'] = parameters['searchModelId']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchSimExpireBegin'] !== undefined) {
    queryParameters['search_simExpireBegin'] = parameters['searchSimExpireBegin']
  }
  if (parameters['searchSimExpireEnd'] !== undefined) {
    queryParameters['search_simExpireEnd'] = parameters['searchSimExpireEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinets_RAW_URL = function() {
  return '/api/cabinets'
}
export const listCabinets_TYPE = function() {
  return 'get'
}
export const listCabinetsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsOnline'] !== undefined) {
    queryParameters['search_isOnline'] = parameters['searchIsOnline']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchModelId'] !== undefined) {
    queryParameters['search_modelId'] = parameters['searchModelId']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchSimExpireBegin'] !== undefined) {
    queryParameters['search_simExpireBegin'] = parameters['searchSimExpireBegin']
  }
  if (parameters['searchSimExpireEnd'] !== undefined) {
    queryParameters['search_simExpireEnd'] = parameters['searchSimExpireEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCabinet
 * url: createCabinetURL
 * method: createCabinet_TYPE
 * raw_url: createCabinet_RAW_URL
 * @param body - 实体参数
 */
export const createCabinet = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCabinet_RAW_URL = function() {
  return '/api/cabinets'
}
export const createCabinet_TYPE = function() {
  return 'post'
}
export const createCabinetURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: batchCreateCabinet
 * url: batchCreateCabinetURL
 * method: batchCreateCabinet_TYPE
 * raw_url: batchCreateCabinet_RAW_URL
 * @param body - 充电柜数组
 */
export const batchCreateCabinet = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/batch-create'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchCreateCabinet_RAW_URL = function() {
  return '/api/cabinets/batch-create'
}
export const batchCreateCabinet_TYPE = function() {
  return 'post'
}
export const batchCreateCabinetURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/batch-create'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: batchDeleteCabinetByIds
 * url: batchDeleteCabinetByIdsURL
 * method: batchDeleteCabinetByIds_TYPE
 * raw_url: batchDeleteCabinetByIds_RAW_URL
 * @param body - 充电柜id数组
 */
export const batchDeleteCabinetByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/batch-delete'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchDeleteCabinetByIds_RAW_URL = function() {
  return '/api/cabinets/batch-delete'
}
export const batchDeleteCabinetByIds_TYPE = function() {
  return 'post'
}
export const batchDeleteCabinetByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/batch-delete'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadCabinetWithBin
 * url: loadCabinetWithBinURL
 * method: loadCabinetWithBin_TYPE
 * raw_url: loadCabinetWithBin_RAW_URL
 * @param id - ID
 */
export const loadCabinetWithBin = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/loadCabinetWithBin/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetWithBin_RAW_URL = function() {
  return '/api/cabinets/loadCabinetWithBin/{id}'
}
export const loadCabinetWithBin_TYPE = function() {
  return 'get'
}
export const loadCabinetWithBinURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/loadCabinetWithBin/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadCabinetById
 * url: loadCabinetByIdURL
 * method: loadCabinetById_TYPE
 * raw_url: loadCabinetById_RAW_URL
 * @param id - ID
 */
export const loadCabinetById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetById_RAW_URL = function() {
  return '/api/cabinets/{id}'
}
export const loadCabinetById_TYPE = function() {
  return 'get'
}
export const loadCabinetByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCabinet
 * url: updateCabinetURL
 * method: updateCabinet_TYPE
 * raw_url: updateCabinet_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCabinet = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCabinet_RAW_URL = function() {
  return '/api/cabinets/{id}'
}
export const updateCabinet_TYPE = function() {
  return 'put'
}
export const updateCabinetURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteCabinetById
 * url: deleteCabinetByIdURL
 * method: deleteCabinetById_TYPE
 * raw_url: deleteCabinetById_RAW_URL
 * @param id - ID
 */
export const deleteCabinetById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteCabinetById_RAW_URL = function() {
  return '/api/cabinets/{id}'
}
export const deleteCabinetById_TYPE = function() {
  return 'delete'
}
export const deleteCabinetByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: disableCabinetById
 * url: disableCabinetByIdURL
 * method: disableCabinetById_TYPE
 * raw_url: disableCabinetById_RAW_URL
 * @param id - ID
 */
export const disableCabinetById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableCabinetById_RAW_URL = function() {
  return '/api/cabinets/{id}/disable'
}
export const disableCabinetById_TYPE = function() {
  return 'put'
}
export const disableCabinetByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: enableCabinetById
 * url: enableCabinetByIdURL
 * method: enableCabinetById_TYPE
 * raw_url: enableCabinetById_RAW_URL
 * @param id - ID
 */
export const enableCabinetById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableCabinetById_RAW_URL = function() {
  return '/api/cabinets/{id}/enable'
}
export const enableCabinetById_TYPE = function() {
  return 'put'
}
export const enableCabinetByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryCabinetLog
 * url: queryCabinetLogURL
 * method: queryCabinetLog_TYPE
 * raw_url: queryCabinetLog_RAW_URL
 * @param body - 获取充电柜日志参数
 * @param id - 充电柜ID
 */
export const queryCabinetLog = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-cabinet-log'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const queryCabinetLog_RAW_URL = function() {
  return '/api/cabinets/{id}/query-cabinet-log'
}
export const queryCabinetLog_TYPE = function() {
  return 'post'
}
export const queryCabinetLogURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-cabinet-log'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryCabinetParams
 * url: queryCabinetParamsURL
 * method: queryCabinetParams_TYPE
 * raw_url: queryCabinetParams_RAW_URL
 * @param id - 充电柜ID
 */
export const queryCabinetParams = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-cabinet-params'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryCabinetParams_RAW_URL = function() {
  return '/api/cabinets/{id}/query-cabinet-params'
}
export const queryCabinetParams_TYPE = function() {
  return 'get'
}
export const queryCabinetParamsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-cabinet-params'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryCabinetSecretKey
 * url: queryCabinetSecretKeyURL
 * method: queryCabinetSecretKey_TYPE
 * raw_url: queryCabinetSecretKey_RAW_URL
 * @param id - 充电柜ID
 */
export const queryCabinetSecretKey = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-cabinet-secretKey'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryCabinetSecretKey_RAW_URL = function() {
  return '/api/cabinets/{id}/query-cabinet-secretKey'
}
export const queryCabinetSecretKey_TYPE = function() {
  return 'get'
}
export const queryCabinetSecretKeyURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-cabinet-secretKey'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryElectricityMeter
 * url: queryElectricityMeterURL
 * method: queryElectricityMeter_TYPE
 * raw_url: queryElectricityMeter_RAW_URL
 * @param id - 充电柜ID
 */
export const queryElectricityMeter = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-electricity-meter'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryElectricityMeter_RAW_URL = function() {
  return '/api/cabinets/{id}/query-electricity-meter'
}
export const queryElectricityMeter_TYPE = function() {
  return 'get'
}
export const queryElectricityMeterURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-electricity-meter'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryICCID
 * url: queryICCIDURL
 * method: queryICCID_TYPE
 * raw_url: queryICCID_RAW_URL
 * @param id - 充电柜ID
 */
export const queryICCID = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-iccid'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryICCID_RAW_URL = function() {
  return '/api/cabinets/{id}/query-iccid'
}
export const queryICCID_TYPE = function() {
  return 'get'
}
export const queryICCIDURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-iccid'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: queryReportCabinetStatusInterval
 * url: queryReportCabinetStatusIntervalURL
 * method: queryReportCabinetStatusInterval_TYPE
 * raw_url: queryReportCabinetStatusInterval_RAW_URL
 * @param id - 充电柜ID
 */
export const queryReportCabinetStatusInterval = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-report-cabinet-status-interval'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryReportCabinetStatusInterval_RAW_URL = function() {
  return '/api/cabinets/{id}/query-report-cabinet-status-interval'
}
export const queryReportCabinetStatusInterval_TYPE = function() {
  return 'get'
}
export const queryReportCabinetStatusIntervalURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-report-cabinet-status-interval'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: querySoftwareDownResult
 * url: querySoftwareDownResultURL
 * method: querySoftwareDownResult_TYPE
 * raw_url: querySoftwareDownResult_RAW_URL
 * @param body - 软件版本参数
 * @param id - 充电柜ID
 */
export const querySoftwareDownResult = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-software-down-result'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const querySoftwareDownResult_RAW_URL = function() {
  return '/api/cabinets/{id}/query-software-down-result'
}
export const querySoftwareDownResult_TYPE = function() {
  return 'post'
}
export const querySoftwareDownResultURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-software-down-result'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: querySoftwareVersion
 * url: querySoftwareVersionURL
 * method: querySoftwareVersion_TYPE
 * raw_url: querySoftwareVersion_RAW_URL
 * @param id - 充电柜ID
 */
export const querySoftwareVersion = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/query-software-version'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const querySoftwareVersion_RAW_URL = function() {
  return '/api/cabinets/{id}/query-software-version'
}
export const querySoftwareVersion_TYPE = function() {
  return 'get'
}
export const querySoftwareVersionURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/query-software-version'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendCabinetLoginInfo
 * url: sendCabinetLoginInfoURL
 * method: sendCabinetLoginInfo_TYPE
 * raw_url: sendCabinetLoginInfo_RAW_URL
 * @param body - 充电柜登录信息参数
 * @param id - 充电柜ID
 */
export const sendCabinetLoginInfo = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-cabinet-login-info'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendCabinetLoginInfo_RAW_URL = function() {
  return '/api/cabinets/{id}/send-cabinet-login-info'
}
export const sendCabinetLoginInfo_TYPE = function() {
  return 'post'
}
export const sendCabinetLoginInfoURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-cabinet-login-info'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendCabinetParams
 * url: sendCabinetParamsURL
 * method: sendCabinetParams_TYPE
 * raw_url: sendCabinetParams_RAW_URL
 * @param body - 实体参数
 * @param id - 充电柜ID
 */
export const sendCabinetParams = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-cabinet-params'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendCabinetParams_RAW_URL = function() {
  return '/api/cabinets/{id}/send-cabinet-params'
}
export const sendCabinetParams_TYPE = function() {
  return 'post'
}
export const sendCabinetParamsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-cabinet-params'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendCabinetReportStatusInterval
 * url: sendCabinetReportStatusIntervalURL
 * method: sendCabinetReportStatusInterval_TYPE
 * raw_url: sendCabinetReportStatusInterval_RAW_URL
 * @param body - 实体参数
 * @param id - 充电柜ID
 */
export const sendCabinetReportStatusInterval = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-cabinet-report-statusInterval'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendCabinetReportStatusInterval_RAW_URL = function() {
  return '/api/cabinets/{id}/send-cabinet-report-statusInterval'
}
export const sendCabinetReportStatusInterval_TYPE = function() {
  return 'post'
}
export const sendCabinetReportStatusIntervalURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-cabinet-report-statusInterval'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendCabinetRestart
 * url: sendCabinetRestartURL
 * method: sendCabinetRestart_TYPE
 * raw_url: sendCabinetRestart_RAW_URL
 * @param id - 充电柜ID
 */
export const sendCabinetRestart = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-cabinet-restart'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const sendCabinetRestart_RAW_URL = function() {
  return '/api/cabinets/{id}/send-cabinet-restart'
}
export const sendCabinetRestart_TYPE = function() {
  return 'get'
}
export const sendCabinetRestartURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-cabinet-restart'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: sendChangingRenewal
 * url: sendChangingRenewalURL
 * method: sendChangingRenewal_TYPE
 * raw_url: sendChangingRenewal_RAW_URL
 * @param body - 续费充电参数
 * @param id - 充电柜ID
 */
export const sendChangingRenewal = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-changing-renewal'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendChangingRenewal_RAW_URL = function() {
  return '/api/cabinets/{id}/send-changing-renewal'
}
export const sendChangingRenewal_TYPE = function() {
  return 'post'
}
export const sendChangingRenewalURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-changing-renewal'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: sendChangingStart
 * url: sendChangingStartURL
 * method: sendChangingStart_TYPE
 * raw_url: sendChangingStart_RAW_URL
 * @param body - 启动充电参数
 * @param id - 充电柜ID
 */
export const sendChangingStart = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-changing-start'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendChangingStart_RAW_URL = function() {
  return '/api/cabinets/{id}/send-changing-start'
}
export const sendChangingStart_TYPE = function() {
  return 'post'
}
export const sendChangingStartURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-changing-start'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: sendChargingStop
 * url: sendChargingStopURL
 * method: sendChargingStop_TYPE
 * raw_url: sendChargingStop_RAW_URL
 * @param body - 充电停止参数
 * @param id - 充电柜ID
 */
export const sendChargingStop = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-charging-stop'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendChargingStop_RAW_URL = function() {
  return '/api/cabinets/{id}/send-charging-stop'
}
export const sendChargingStop_TYPE = function() {
  return 'post'
}
export const sendChargingStopURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-charging-stop'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendOpenCabinetBinDoor
 * url: sendOpenCabinetBinDoorURL
 * method: sendOpenCabinetBinDoor_TYPE
 * raw_url: sendOpenCabinetBinDoor_RAW_URL
 * @param body - 充电柜仓id数组
 * @param id - 充电柜ID
 */
export const sendOpenCabinetBinDoor = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-open-cabinet-bin-door'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendOpenCabinetBinDoor_RAW_URL = function() {
  return '/api/cabinets/{id}/send-open-cabinet-bin-door'
}
export const sendOpenCabinetBinDoor_TYPE = function() {
  return 'post'
}
export const sendOpenCabinetBinDoorURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-open-cabinet-bin-door'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendSoftwareUpgrade
 * url: sendSoftwareUpgradeURL
 * method: sendSoftwareUpgrade_TYPE
 * raw_url: sendSoftwareUpgrade_RAW_URL
 * @param body - 软件升级参数
 * @param id - 充电柜ID
 */
export const sendSoftwareUpgrade = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/cabinets/{id}/send-software-upgrade'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendSoftwareUpgrade_RAW_URL = function() {
  return '/api/cabinets/{id}/send-software-upgrade'
}
export const sendSoftwareUpgrade_TYPE = function() {
  return 'post'
}
export const sendSoftwareUpgradeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/cabinets/{id}/send-software-upgrade'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCharges
* url: listChargesURL
* method: listCharges_TYPE
* raw_url: listCharges_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考DataRang枚举
     * @param searchIsEnable - 查询条件:是否启用，精确查询
     * @param searchOccupyFreeDuration - 查询条件:免费占箱时长，等于
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
     * @param searchTitle - 查询条件:标题，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCharges = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchOccupyFreeDuration'] !== undefined) {
    queryParameters['search_occupyFreeDuration'] = parameters['searchOccupyFreeDuration']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCharges_RAW_URL = function() {
  return '/api/charges'
}
export const listCharges_TYPE = function() {
  return 'get'
}
export const listChargesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchOccupyFreeDuration'] !== undefined) {
    queryParameters['search_occupyFreeDuration'] = parameters['searchOccupyFreeDuration']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createCharge
 * url: createChargeURL
 * method: createCharge_TYPE
 * raw_url: createCharge_RAW_URL
 * @param body - 实体参数
 */
export const createCharge = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createCharge_RAW_URL = function() {
  return '/api/charges'
}
export const createCharge_TYPE = function() {
  return 'post'
}
export const createChargeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为列表，失败：code!=200
* request: allCharges
* url: allChargesURL
* method: allCharges_TYPE
* raw_url: allCharges_RAW_URL
     * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考DataRang枚举
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
*/
export const allCharges = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const allCharges_RAW_URL = function() {
  return '/api/charges/all'
}
export const allCharges_TYPE = function() {
  return 'get'
}
export const allChargesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/all'
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadChargeById
 * url: loadChargeByIdURL
 * method: loadChargeById_TYPE
 * raw_url: loadChargeById_RAW_URL
 * @param id - ID
 */
export const loadChargeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadChargeById_RAW_URL = function() {
  return '/api/charges/{id}'
}
export const loadChargeById_TYPE = function() {
  return 'get'
}
export const loadChargeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateCharge
 * url: updateChargeURL
 * method: updateCharge_TYPE
 * raw_url: updateCharge_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateCharge = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateCharge_RAW_URL = function() {
  return '/api/charges/{id}'
}
export const updateCharge_TYPE = function() {
  return 'put'
}
export const updateChargeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteChargeById
 * url: deleteChargeByIdURL
 * method: deleteChargeById_TYPE
 * raw_url: deleteChargeById_RAW_URL
 * @param id - ID
 */
export const deleteChargeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteChargeById_RAW_URL = function() {
  return '/api/charges/{id}'
}
export const deleteChargeById_TYPE = function() {
  return 'delete'
}
export const deleteChargeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: disableChargeById
 * url: disableChargeByIdURL
 * method: disableChargeById_TYPE
 * raw_url: disableChargeById_RAW_URL
 * @param id - ID
 */
export const disableChargeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableChargeById_RAW_URL = function() {
  return '/api/charges/{id}/disable'
}
export const disableChargeById_TYPE = function() {
  return 'put'
}
export const disableChargeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: enableChargeById
 * url: enableChargeByIdURL
 * method: enableChargeById_TYPE
 * raw_url: enableChargeById_RAW_URL
 * @param id - ID
 */
export const enableChargeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/charges/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableChargeById_RAW_URL = function() {
  return '/api/charges/{id}/enable'
}
export const enableChargeById_TYPE = function() {
  return 'put'
}
export const enableChargeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/charges/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序字段：code,name,description,parent.id,parent.name,organization.id,
organization.name,sortIndex,isEnable,createTime,
成功：code=200，data对象为包含分页信息的部门列表，失败：code!=200
* request: listDepartments
* url: listDepartmentsURL
* method: listDepartments_TYPE
* raw_url: listDepartments_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:部门代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:部门描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchName - 查询条件:部门名称，模糊匹配
     * @param searchOrganizationId - 查询条件:所属组织机构ID，精确匹配
     * @param searchOrganizationIds - 查询条件:所属组织机构ID数组，精确匹配
     * @param searchOrganizationName - 查询条件:所属组织机构名称，模糊匹配
     * @param searchParentId - 查询条件:上级部门ID，精确匹配
     * @param searchParentIds - 查询条件:上级部门ID数组，精确匹配
     * @param searchParentName - 查询条件:上级部门名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listDepartments = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchOrganizationIds'] !== undefined) {
    queryParameters['search_organizationIds'] = parameters['searchOrganizationIds']
  }
  if (parameters['searchOrganizationName'] !== undefined) {
    queryParameters['search_organizationName'] = parameters['searchOrganizationName']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentIds'] !== undefined) {
    queryParameters['search_parentIds'] = parameters['searchParentIds']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDepartments_RAW_URL = function() {
  return '/api/departments'
}
export const listDepartments_TYPE = function() {
  return 'get'
}
export const listDepartmentsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchOrganizationIds'] !== undefined) {
    queryParameters['search_organizationIds'] = parameters['searchOrganizationIds']
  }
  if (parameters['searchOrganizationName'] !== undefined) {
    queryParameters['search_organizationName'] = parameters['searchOrganizationName']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentIds'] !== undefined) {
    queryParameters['search_parentIds'] = parameters['searchParentIds']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createDepartment
 * url: createDepartmentURL
 * method: createDepartment_TYPE
 * raw_url: createDepartment_RAW_URL
 * @param body - 部门实体参数
 */
export const createDepartment = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createDepartment_RAW_URL = function() {
  return '/api/departments'
}
export const createDepartment_TYPE = function() {
  return 'post'
}
export const createDepartmentURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含分页信息的组织机构列表，失败：code!=200
 * request: departmentsTree
 * url: departmentsTreeURL
 * method: departmentsTree_TYPE
 * raw_url: departmentsTree_RAW_URL
 * @param searchName - 查询条件:部门名称，精确匹配
 * @param searchOrganizationId - 查询条件:组织机构id，精确匹配
 */
export const departmentsTree = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/tree'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const departmentsTree_RAW_URL = function() {
  return '/api/departments/tree'
}
export const departmentsTree_TYPE = function() {
  return 'get'
}
export const departmentsTreeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/tree'
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为部门信息，失败：code!=200
 * request: loadDepartmentById
 * url: loadDepartmentByIdURL
 * method: loadDepartmentById_TYPE
 * raw_url: loadDepartmentById_RAW_URL
 * @param id - 部门ID
 */
export const loadDepartmentById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadDepartmentById_RAW_URL = function() {
  return '/api/departments/{id}'
}
export const loadDepartmentById_TYPE = function() {
  return 'get'
}
export const loadDepartmentByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDepartment
 * url: updateDepartmentURL
 * method: updateDepartment_TYPE
 * raw_url: updateDepartment_RAW_URL
 * @param body - 部门实体参数
 * @param id - 部门id
 */
export const updateDepartment = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateDepartment_RAW_URL = function() {
  return '/api/departments/{id}'
}
export const updateDepartment_TYPE = function() {
  return 'put'
}
export const updateDepartmentURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteDepartmentById
 * url: deleteDepartmentByIdURL
 * method: deleteDepartmentById_TYPE
 * raw_url: deleteDepartmentById_RAW_URL
 * @param id - 部门ID
 */
export const deleteDepartmentById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteDepartmentById_RAW_URL = function() {
  return '/api/departments/{id}'
}
export const deleteDepartmentById_TYPE = function() {
  return 'delete'
}
export const deleteDepartmentByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDepartmentPatch
 * url: updateDepartmentPatchURL
 * method: updateDepartmentPatch_TYPE
 * raw_url: updateDepartmentPatch_RAW_URL
 * @param body - 部门实体参数
 * @param id - 部门id
 */
export const updateDepartmentPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateDepartmentPatch_RAW_URL = function() {
  return '/api/departments/{id}'
}
export const updateDepartmentPatch_TYPE = function() {
  return 'patch'
}
export const updateDepartmentPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableDepartmentById
 * url: disableDepartmentByIdURL
 * method: disableDepartmentById_TYPE
 * raw_url: disableDepartmentById_RAW_URL
 * @param id - 部门id
 */
export const disableDepartmentById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableDepartmentById_RAW_URL = function() {
  return '/api/departments/{id}/disable'
}
export const disableDepartmentById_TYPE = function() {
  return 'put'
}
export const disableDepartmentByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableDepartmentById
 * url: enableDepartmentByIdURL
 * method: enableDepartmentById_TYPE
 * raw_url: enableDepartmentById_RAW_URL
 * @param id - 部门id
 */
export const enableDepartmentById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/departments/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableDepartmentById_RAW_URL = function() {
  return '/api/departments/{id}/enable'
}
export const enableDepartmentById_TYPE = function() {
  return 'put'
}
export const enableDepartmentByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/departments/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=201
 * request: generateApisFromServices
 * url: generateApisFromServicesURL
 * method: generateApisFromServices_TYPE
 * raw_url: generateApisFromServices_RAW_URL
 * @param body - 业务逻辑接口列表
 */
export const generateApisFromServices = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/apis/generateFromServices'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const generateApisFromServices_RAW_URL = function() {
  return '/api/develop/generator/api/apis/generateFromServices'
}
export const generateApisFromServices_TYPE = function() {
  return 'post'
}
export const generateApisFromServicesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/apis/generateFromServices'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为数据库Schema信息，失败：code!=200
 * request: getDatabaseSchema
 * url: getDatabaseSchemaURL
 * method: getDatabaseSchema_TYPE
 * raw_url: getDatabaseSchema_RAW_URL
 */
export const getDatabaseSchema = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/database/schema'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const getDatabaseSchema_RAW_URL = function() {
  return '/api/develop/generator/api/database/schema'
}
export const getDatabaseSchema_TYPE = function() {
  return 'get'
}
export const getDatabaseSchemaURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/database/schema'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=201
 * request: generateEntitiesFromTables
 * url: generateEntitiesFromTablesURL
 * method: generateEntitiesFromTables_TYPE
 * raw_url: generateEntitiesFromTables_RAW_URL
 * @param body - 数据库表列表
 */
export const generateEntitiesFromTables = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/entities/generateFromTables'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const generateEntitiesFromTables_RAW_URL = function() {
  return '/api/develop/generator/api/entities/generateFromTables'
}
export const generateEntitiesFromTables_TYPE = function() {
  return 'post'
}
export const generateEntitiesFromTablesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/entities/generateFromTables'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=201
 * request: generateRepositoriesFromEntities
 * url: generateRepositoriesFromEntitiesURL
 * method: generateRepositoriesFromEntities_TYPE
 * raw_url: generateRepositoriesFromEntities_RAW_URL
 * @param body - 实体列表
 */
export const generateRepositoriesFromEntities = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/repositories/generateFromEntities'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const generateRepositoriesFromEntities_RAW_URL = function() {
  return '/api/develop/generator/api/repositories/generateFromEntities'
}
export const generateRepositoriesFromEntities_TYPE = function() {
  return 'post'
}
export const generateRepositoriesFromEntitiesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/repositories/generateFromEntities'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=201
 * request: generateServicesFromRepositories
 * url: generateServicesFromRepositoriesURL
 * method: generateServicesFromRepositories_TYPE
 * raw_url: generateServicesFromRepositories_RAW_URL
 * @param body - 数据访问接口列表
 */
export const generateServicesFromRepositories = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/services/generateFromRepositories'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const generateServicesFromRepositories_RAW_URL = function() {
  return '/api/develop/generator/api/services/generateFromRepositories'
}
export const generateServicesFromRepositories_TYPE = function() {
  return 'post'
}
export const generateServicesFromRepositoriesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/services/generateFromRepositories'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=201
 * request: generateSummaryToFiles
 * url: generateSummaryToFilesURL
 * method: generateSummaryToFiles_TYPE
 * raw_url: generateSummaryToFiles_RAW_URL
 * @param body - 实体、数据访问接口、业务逻辑接口、REST接口汇总信息
 */
export const generateSummaryToFiles = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/develop/generator/api/summary/generateToFiles'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const generateSummaryToFiles_RAW_URL = function() {
  return '/api/develop/generator/api/summary/generateToFiles'
}
export const generateSummaryToFiles_TYPE = function() {
  return 'post'
}
export const generateSummaryToFilesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/develop/generator/api/summary/generateToFiles'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序字段：code,name,description,type,sortIndex,isSystem,isEnable,createTime
成功：code=200，data对象为包含分页信息的字典列表，失败：code!=200
* request: listDictionaries
* url: listDictionariesURL
* method: listDictionaries_TYPE
* raw_url: listDictionaries_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:字典代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:字典描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchIsSystem - 查询条件:是否是系统预置，，1：是，0：否，精确匹配
     * @param searchName - 查询条件:字典名称，模糊匹配
     * @param searchType - 查询条件:字典类型，精确匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listDictionaries = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDictionaries_RAW_URL = function() {
  return '/api/dictionaries'
}
export const listDictionaries_TYPE = function() {
  return 'get'
}
export const listDictionariesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createDictionary
 * url: createDictionaryURL
 * method: createDictionary_TYPE
 * raw_url: createDictionary_RAW_URL
 * @param body - 字典实体参数
 */
export const createDictionary = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createDictionary_RAW_URL = function() {
  return '/api/dictionaries'
}
export const createDictionary_TYPE = function() {
  return 'post'
}
export const createDictionaryURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadDictionaryById
 * url: loadDictionaryByIdURL
 * method: loadDictionaryById_TYPE
 * raw_url: loadDictionaryById_RAW_URL
 * @param id - 字典ID
 */
export const loadDictionaryById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadDictionaryById_RAW_URL = function() {
  return '/api/dictionaries/{id}'
}
export const loadDictionaryById_TYPE = function() {
  return 'get'
}
export const loadDictionaryByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDictionary
 * url: updateDictionaryURL
 * method: updateDictionary_TYPE
 * raw_url: updateDictionary_RAW_URL
 * @param body - 字典实体参数
 * @param id - 字典id
 */
export const updateDictionary = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateDictionary_RAW_URL = function() {
  return '/api/dictionaries/{id}'
}
export const updateDictionary_TYPE = function() {
  return 'put'
}
export const updateDictionaryURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteDictionaryById
 * url: deleteDictionaryByIdURL
 * method: deleteDictionaryById_TYPE
 * raw_url: deleteDictionaryById_RAW_URL
 * @param id - 字典ID
 */
export const deleteDictionaryById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteDictionaryById_RAW_URL = function() {
  return '/api/dictionaries/{id}'
}
export const deleteDictionaryById_TYPE = function() {
  return 'delete'
}
export const deleteDictionaryByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDictionaryPatch
 * url: updateDictionaryPatchURL
 * method: updateDictionaryPatch_TYPE
 * raw_url: updateDictionaryPatch_RAW_URL
 * @param body - 字典实体参数
 * @param id - 字典id
 */
export const updateDictionaryPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaries/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateDictionaryPatch_RAW_URL = function() {
  return '/api/dictionaries/{id}'
}
export const updateDictionaryPatch_TYPE = function() {
  return 'patch'
}
export const updateDictionaryPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaries/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：code,name,description,isSystem,createTim
成功：code=200，data对象为包含分页信息的字典类型列表，失败：code!=200
* request: listDictionaryTypes
* url: listDictionaryTypesURL
* method: listDictionaryTypes_TYPE
* raw_url: listDictionaryTypes_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:字典代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:字典描述，模糊匹配
     * @param searchIsSystem - 查询条件:是否是系统预置，，1：是，0：否，精确匹配
     * @param searchName - 查询条件:字典名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listDictionaryTypes = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDictionaryTypes_RAW_URL = function() {
  return '/api/dictionaryTypes'
}
export const listDictionaryTypes_TYPE = function() {
  return 'get'
}
export const listDictionaryTypesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createDictionaryType
 * url: createDictionaryTypeURL
 * method: createDictionaryType_TYPE
 * raw_url: createDictionaryType_RAW_URL
 * @param body - 字典分类实体参数
 */
export const createDictionaryType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createDictionaryType_RAW_URL = function() {
  return '/api/dictionaryTypes'
}
export const createDictionaryType_TYPE = function() {
  return 'post'
}
export const createDictionaryTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含字典类型信息的列表，失败：code!=200
 * request: listDictionaryTypesByCode
 * url: listDictionaryTypesByCodeURL
 * method: listDictionaryTypesByCode_TYPE
 * raw_url: listDictionaryTypesByCode_RAW_URL
 * @param codes - 字典类型代码，逗号分隔
 */
export const listDictionaryTypesByCode = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/codes/{codes}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{codes}', `${parameters['codes']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDictionaryTypesByCode_RAW_URL = function() {
  return '/api/dictionaryTypes/codes/{codes}'
}
export const listDictionaryTypesByCode_TYPE = function() {
  return 'get'
}
export const listDictionaryTypesByCodeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/codes/{codes}'
  path = path.replace('{codes}', `${parameters['codes']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含字典类型条目信息的列表，失败：code!=200
 * request: listDictionaryTypeItemsByCode
 * url: listDictionaryTypeItemsByCodeURL
 * method: listDictionaryTypeItemsByCode_TYPE
 * raw_url: listDictionaryTypeItemsByCode_RAW_URL
 * @param code - 字典类型代码，逗号分隔
 */
export const listDictionaryTypeItemsByCode = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/{code}/items'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{code}', `${parameters['code']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDictionaryTypeItemsByCode_RAW_URL = function() {
  return '/api/dictionaryTypes/{code}/items'
}
export const listDictionaryTypeItemsByCode_TYPE = function() {
  return 'get'
}
export const listDictionaryTypeItemsByCodeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/{code}/items'
  path = path.replace('{code}', `${parameters['code']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadDictionaryTypeById
 * url: loadDictionaryTypeByIdURL
 * method: loadDictionaryTypeById_TYPE
 * raw_url: loadDictionaryTypeById_RAW_URL
 * @param id - 字典分类ID
 */
export const loadDictionaryTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadDictionaryTypeById_RAW_URL = function() {
  return '/api/dictionaryTypes/{id}'
}
export const loadDictionaryTypeById_TYPE = function() {
  return 'get'
}
export const loadDictionaryTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDictionaryType
 * url: updateDictionaryTypeURL
 * method: updateDictionaryType_TYPE
 * raw_url: updateDictionaryType_RAW_URL
 * @param body - 字典实体参数
 * @param id - 字典id
 */
export const updateDictionaryType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateDictionaryType_RAW_URL = function() {
  return '/api/dictionaryTypes/{id}'
}
export const updateDictionaryType_TYPE = function() {
  return 'put'
}
export const updateDictionaryTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteDictionaryTypeById
 * url: deleteDictionaryTypeByIdURL
 * method: deleteDictionaryTypeById_TYPE
 * raw_url: deleteDictionaryTypeById_RAW_URL
 * @param id - 字典ID
 */
export const deleteDictionaryTypeById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteDictionaryTypeById_RAW_URL = function() {
  return '/api/dictionaryTypes/{id}'
}
export const deleteDictionaryTypeById_TYPE = function() {
  return 'delete'
}
export const deleteDictionaryTypeByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDictionaryTypePatch
 * url: updateDictionaryTypePatchURL
 * method: updateDictionaryTypePatch_TYPE
 * raw_url: updateDictionaryTypePatch_RAW_URL
 * @param body - 字典分类实体参数
 * @param id - 字典id
 */
export const updateDictionaryTypePatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/dictionaryTypes/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateDictionaryTypePatch_RAW_URL = function() {
  return '/api/dictionaryTypes/{id}'
}
export const updateDictionaryTypePatch_TYPE = function() {
  return 'patch'
}
export const updateDictionaryTypePatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/dictionaryTypes/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为禁止语音播报时段列表，失败：code!=200
* request: listDisableVoiceTimes
* url: listDisableVoiceTimesURL
* method: listDisableVoiceTimes_TYPE
* raw_url: listDisableVoiceTimes_RAW_URL
     * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考dataRang枚举
     * @param searchOrganizationId - 查询条件:组织机构ID，等于
*/
export const listDisableVoiceTimes = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/disable-voice-times'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDisableVoiceTimes_RAW_URL = function() {
  return '/api/disable-voice-times'
}
export const listDisableVoiceTimes_TYPE = function() {
  return 'get'
}
export const listDisableVoiceTimesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/disable-voice-times'
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createDisableVoiceTime
 * url: createDisableVoiceTimeURL
 * method: createDisableVoiceTime_TYPE
 * raw_url: createDisableVoiceTime_RAW_URL
 * @param body - 实体参数
 */
export const createDisableVoiceTime = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/disable-voice-times'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createDisableVoiceTime_RAW_URL = function() {
  return '/api/disable-voice-times'
}
export const createDisableVoiceTime_TYPE = function() {
  return 'post'
}
export const createDisableVoiceTimeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/disable-voice-times'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：code,name,description,level,level.code,level.name,sortIndex,isEnable,createTime
成功：code=200，data对象为包含分页信息的岗位列表，失败：code!=200
* request: listDuties
* url: listDutiesURL
* method: listDuties_TYPE
* raw_url: listDuties_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:岗位代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:岗位描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchIsSystem - 查询条件:是否系统预置，，1：是，0：否，精确匹配
     * @param searchLevel - 查询条件:岗位级别，关联岗位级别字典，精确匹配
     * @param searchLevelName - 查询条件:岗位级别名称，模糊匹配
     * @param searchName - 查询条件:岗位名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listDuties = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listDuties_RAW_URL = function() {
  return '/api/duties'
}
export const listDuties_TYPE = function() {
  return 'get'
}
export const listDutiesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createDuty
 * url: createDutyURL
 * method: createDuty_TYPE
 * raw_url: createDuty_RAW_URL
 * @param body - 岗位实体参数
 */
export const createDuty = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createDuty_RAW_URL = function() {
  return '/api/duties'
}
export const createDuty_TYPE = function() {
  return 'post'
}
export const createDutyURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadDutyById
 * url: loadDutyByIdURL
 * method: loadDutyById_TYPE
 * raw_url: loadDutyById_RAW_URL
 * @param id - 岗位ID
 */
export const loadDutyById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadDutyById_RAW_URL = function() {
  return '/api/duties/{id}'
}
export const loadDutyById_TYPE = function() {
  return 'get'
}
export const loadDutyByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDuty
 * url: updateDutyURL
 * method: updateDuty_TYPE
 * raw_url: updateDuty_RAW_URL
 * @param body - 岗位实体参数
 * @param id - 岗位id
 */
export const updateDuty = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateDuty_RAW_URL = function() {
  return '/api/duties/{id}'
}
export const updateDuty_TYPE = function() {
  return 'put'
}
export const updateDutyURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteDutyById
 * url: deleteDutyByIdURL
 * method: deleteDutyById_TYPE
 * raw_url: deleteDutyById_RAW_URL
 * @param id - 岗位ID
 */
export const deleteDutyById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteDutyById_RAW_URL = function() {
  return '/api/duties/{id}'
}
export const deleteDutyById_TYPE = function() {
  return 'delete'
}
export const deleteDutyByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateDutyPatch
 * url: updateDutyPatchURL
 * method: updateDutyPatch_TYPE
 * raw_url: updateDutyPatch_RAW_URL
 * @param body - 岗位实体参数
 * @param id - 岗位id
 */
export const updateDutyPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/duties/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateDutyPatch_RAW_URL = function() {
  return '/api/duties/{id}'
}
export const updateDutyPatch_TYPE = function() {
  return 'patch'
}
export const updateDutyPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/duties/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含枚举信息的列表，失败：code!=200
 * request: enumsAll
 * url: enumsAllURL
 * method: enumsAll_TYPE
 * raw_url: enumsAll_RAW_URL
 */
export const enumsAll = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/enums/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const enumsAll_RAW_URL = function() {
  return '/api/enums/all'
}
export const enumsAll_TYPE = function() {
  return 'get'
}
export const enumsAllURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/enums/all'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含所有枚举类型信息的列表，失败：code!=200
 * request: listEnumTypes
 * url: listEnumTypesURL
 * method: listEnumTypes_TYPE
 * raw_url: listEnumTypes_RAW_URL
 */
export const listEnumTypes = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/enums/types'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listEnumTypes_RAW_URL = function() {
  return '/api/enums/types'
}
export const listEnumTypes_TYPE = function() {
  return 'get'
}
export const listEnumTypesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/enums/types'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含枚举信息的列表，失败：code!=200
 * request: listEnumsByType
 * url: listEnumsByTypeURL
 * method: listEnumsByType_TYPE
 * raw_url: listEnumsByType_RAW_URL
 * @param types - 枚举类型代码，逗号分隔
 */
export const listEnumsByType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/enums/types/{types}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{types}', `${parameters['types']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listEnumsByType_RAW_URL = function() {
  return '/api/enums/types/{types}'
}
export const listEnumsByType_TYPE = function() {
  return 'get'
}
export const listEnumsByTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/enums/types/{types}'
  path = path.replace('{types}', `${parameters['types']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含枚举信息的列表，失败：code!=200
 * request: listEnumItemsByType
 * url: listEnumItemsByTypeURL
 * method: listEnumItemsByType_TYPE
 * raw_url: listEnumItemsByType_RAW_URL
 * @param type - 枚举类型代码
 */
export const listEnumItemsByType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/enums/{type}/items'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{type}', `${parameters['type']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listEnumItemsByType_RAW_URL = function() {
  return '/api/enums/{type}/items'
}
export const listEnumItemsByType_TYPE = function() {
  return 'get'
}
export const listEnumItemsByTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/enums/{type}/items'
  path = path.replace('{type}', `${parameters['type']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序字段：code,name,url,method,description,parent.id,parent.code,
parent.name,sortIndex,isEnable,createTime
成功：code=200，data对象为包含分页信息的后台接口列表，失败：code!=200
* request: listApis
* url: listApisURL
* method: listApis_TYPE
* raw_url: listApis_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:后台接口代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:后台接口描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchMethod - 查询条件:后台接口请求方式，模糊匹配
     * @param searchName - 查询条件:后台接口名称，模糊匹配
     * @param searchParentCode - 查询条件:上级后台接口代码，模糊匹配
     * @param searchParentId - 查询条件:上级后台接口ID，精确匹配
     * @param searchParentName - 查询条件:上级后台接口名称，模糊匹配
     * @param searchUrl - 查询条件:后台接口地址，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listApis = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMethod'] !== undefined) {
    queryParameters['search_method'] = parameters['searchMethod']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listApis_RAW_URL = function() {
  return '/api/interfaces'
}
export const listApis_TYPE = function() {
  return 'get'
}
export const listApisURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMethod'] !== undefined) {
    queryParameters['search_method'] = parameters['searchMethod']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createApi
 * url: createApiURL
 * method: createApi_TYPE
 * raw_url: createApi_RAW_URL
 * @param body - 后台接口实体参数
 */
export const createApi = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createApi_RAW_URL = function() {
  return '/api/interfaces'
}
export const createApi_TYPE = function() {
  return 'post'
}
export const createApiURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为接口树形结构，失败：code!=200
 * request: apiTree
 * url: apiTreeURL
 * method: apiTree_TYPE
 * raw_url: apiTree_RAW_URL
 * @param searchCode - 查询条件:后台接口代码，模糊匹配
 * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
 * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
 * @param searchDescription - 查询条件:后台接口描述，模糊匹配
 * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
 * @param searchMethod - 查询条件:后台接口请求方式，模糊匹配
 * @param searchName - 查询条件:后台接口名称，模糊匹配
 * @param searchParentCode - 查询条件:上级后台接口代码，模糊匹配
 * @param searchParentId - 查询条件:上级后台接口ID，精确匹配
 * @param searchParentName - 查询条件:上级后台接口名称，模糊匹配
 * @param searchUrl - 查询条件:后台接口地址，模糊匹配
 */
export const apiTree = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces/tree'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMethod'] !== undefined) {
    queryParameters['search_method'] = parameters['searchMethod']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const apiTree_RAW_URL = function() {
  return '/api/interfaces/tree'
}
export const apiTree_TYPE = function() {
  return 'get'
}
export const apiTreeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces/tree'
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMethod'] !== undefined) {
    queryParameters['search_method'] = parameters['searchMethod']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadApiById
 * url: loadApiByIdURL
 * method: loadApiById_TYPE
 * raw_url: loadApiById_RAW_URL
 * @param id - 后台接口ID
 */
export const loadApiById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadApiById_RAW_URL = function() {
  return '/api/interfaces/{id}'
}
export const loadApiById_TYPE = function() {
  return 'get'
}
export const loadApiByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateApi
 * url: updateApiURL
 * method: updateApi_TYPE
 * raw_url: updateApi_RAW_URL
 * @param body - 后台接口实体参数
 * @param id - 后台接口id
 */
export const updateApi = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateApi_RAW_URL = function() {
  return '/api/interfaces/{id}'
}
export const updateApi_TYPE = function() {
  return 'put'
}
export const updateApiURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteApiById
 * url: deleteApiByIdURL
 * method: deleteApiById_TYPE
 * raw_url: deleteApiById_RAW_URL
 * @param id - 后台接口ID
 */
export const deleteApiById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteApiById_RAW_URL = function() {
  return '/api/interfaces/{id}'
}
export const deleteApiById_TYPE = function() {
  return 'delete'
}
export const deleteApiByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateApiPatch
 * url: updateApiPatchURL
 * method: updateApiPatch_TYPE
 * raw_url: updateApiPatch_RAW_URL
 * @param body - 后台接口实体参数
 * @param id - 后台接口id
 */
export const updateApiPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/interfaces/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateApiPatch_RAW_URL = function() {
  return '/api/interfaces/{id}'
}
export const updateApiPatch_TYPE = function() {
  return 'patch'
}
export const updateApiPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/interfaces/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listMessages
* url: listMessagesURL
* method: listMessages_TYPE
* raw_url: listMessages_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchContent - 查询条件:内容，模糊匹配
     * @param searchTips - 查询条件:提示，模糊匹配
     * @param searchTitle - 查询条件:标题，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listMessages = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchContent'] !== undefined) {
    queryParameters['search_content'] = parameters['searchContent']
  }
  if (parameters['searchTips'] !== undefined) {
    queryParameters['search_tips'] = parameters['searchTips']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listMessages_RAW_URL = function() {
  return '/api/messages'
}
export const listMessages_TYPE = function() {
  return 'get'
}
export const listMessagesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchContent'] !== undefined) {
    queryParameters['search_content'] = parameters['searchContent']
  }
  if (parameters['searchTips'] !== undefined) {
    queryParameters['search_tips'] = parameters['searchTips']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createMessage
 * url: createMessageURL
 * method: createMessage_TYPE
 * raw_url: createMessage_RAW_URL
 * @param body - 实体参数
 */
export const createMessage = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createMessage_RAW_URL = function() {
  return '/api/messages'
}
export const createMessage_TYPE = function() {
  return 'post'
}
export const createMessageURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadMessageById
 * url: loadMessageByIdURL
 * method: loadMessageById_TYPE
 * raw_url: loadMessageById_RAW_URL
 * @param id - ID
 */
export const loadMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadMessageById_RAW_URL = function() {
  return '/api/messages/{id}'
}
export const loadMessageById_TYPE = function() {
  return 'get'
}
export const loadMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateMessage
 * url: updateMessageURL
 * method: updateMessage_TYPE
 * raw_url: updateMessage_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateMessage = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateMessage_RAW_URL = function() {
  return '/api/messages/{id}'
}
export const updateMessage_TYPE = function() {
  return 'put'
}
export const updateMessageURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteMessageById
 * url: deleteMessageByIdURL
 * method: deleteMessageById_TYPE
 * raw_url: deleteMessageById_RAW_URL
 * @param id - ID
 */
export const deleteMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteMessageById_RAW_URL = function() {
  return '/api/messages/{id}'
}
export const deleteMessageById_TYPE = function() {
  return 'delete'
}
export const deleteMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendMessageById
 * url: sendMessageByIdURL
 * method: sendMessageById_TYPE
 * raw_url: sendMessageById_RAW_URL
 * @param body - 用户ID数组
 * @param id - ID
 */
export const sendMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages/{id}/send'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendMessageById_RAW_URL = function() {
  return '/api/messages/{id}/send'
}
export const sendMessageById_TYPE = function() {
  return 'post'
}
export const sendMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages/{id}/send'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendAllMessageById
 * url: sendAllMessageByIdURL
 * method: sendAllMessageById_TYPE
 * raw_url: sendAllMessageById_RAW_URL
 * @param id - ID
 */
export const sendAllMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/messages/{id}/sendAll'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const sendAllMessageById_RAW_URL = function() {
  return '/api/messages/{id}/sendAll'
}
export const sendAllMessageById_TYPE = function() {
  return 'get'
}
export const sendAllMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/messages/{id}/sendAll'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：createTime
成功：code=200，data对象为开屏广告信息的列表，失败：code!=200
* request: listAdvertisementsOnMobile
* url: listAdvertisementsOnMobileURL
* method: listAdvertisementsOnMobile_TYPE
* raw_url: listAdvertisementsOnMobile_RAW_URL
     * @param searchTitle - 查询条件:广告标题，模糊匹配
*/
export const listAdvertisementsOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/advertisements'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listAdvertisementsOnMobile_RAW_URL = function() {
  return '/api/mobile/advertisements'
}
export const listAdvertisementsOnMobile_TYPE = function() {
  return 'get'
}
export const listAdvertisementsOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/advertisements'
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listCabinetsOnMobile
* url: listCabinetsOnMobileURL
* method: listCabinetsOnMobile_TYPE
* raw_url: listCabinetsOnMobile_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchAreaCode - 查询条件:区域编码，模糊匹配
     * @param searchCabinetBinStatus - 查询条件:充电仓状态，等于
     * @param searchCode - 查询条件:充电柜编码，精确匹配
     * @param searchKeyWord - 查询条件:地址/名称，模糊匹配
     * @param searchLat - 查询条件:纬度，大于等于
     * @param searchLng - 查询条件:经度，大于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listCabinetsOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAreaCode'] !== undefined) {
    queryParameters['search_areaCode'] = parameters['searchAreaCode']
  }
  if (parameters['searchCabinetBinStatus'] !== undefined) {
    queryParameters['search_cabinetBinStatus'] = parameters['searchCabinetBinStatus']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchLat'] !== undefined) {
    queryParameters['search_lat'] = parameters['searchLat']
  }
  if (parameters['searchLat'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: searchLat'))
  }
  if (parameters['searchLng'] !== undefined) {
    queryParameters['search_lng'] = parameters['searchLng']
  }
  if (parameters['searchLng'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: searchLng'))
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listCabinetsOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets'
}
export const listCabinetsOnMobile_TYPE = function() {
  return 'get'
}
export const listCabinetsOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAreaCode'] !== undefined) {
    queryParameters['search_areaCode'] = parameters['searchAreaCode']
  }
  if (parameters['searchCabinetBinStatus'] !== undefined) {
    queryParameters['search_cabinetBinStatus'] = parameters['searchCabinetBinStatus']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchKeyWord'] !== undefined) {
    queryParameters['search_keyWord'] = parameters['searchKeyWord']
  }
  if (parameters['searchLat'] !== undefined) {
    queryParameters['search_lat'] = parameters['searchLat']
  }
  if (parameters['searchLng'] !== undefined) {
    queryParameters['search_lng'] = parameters['searchLng']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetByCodeOnMobile
 * url: loadCabinetByCodeOnMobileURL
 * method: loadCabinetByCodeOnMobile_TYPE
 * raw_url: loadCabinetByCodeOnMobile_RAW_URL
 * @param code - 充电柜编码
 */
export const loadCabinetByCodeOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/code/{code}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{code}', `${parameters['code']}`)
  if (parameters['code'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: code'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetByCodeOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/code/{code}'
}
export const loadCabinetByCodeOnMobile_TYPE = function() {
  return 'get'
}
export const loadCabinetByCodeOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/code/{code}'
  path = path.replace('{code}', `${parameters['code']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadCabinetByIdOnMobile
 * url: loadCabinetByIdOnMobileURL
 * method: loadCabinetByIdOnMobile_TYPE
 * raw_url: loadCabinetByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const loadCabinetByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadCabinetByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/{id}'
}
export const loadCabinetByIdOnMobile_TYPE = function() {
  return 'get'
}
export const loadCabinetByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendOpenCabinetBinDoorOnMobile
 * url: sendOpenCabinetBinDoorOnMobileURL
 * method: sendOpenCabinetBinDoorOnMobile_TYPE
 * raw_url: sendOpenCabinetBinDoorOnMobile_RAW_URL
 * @param body - 实体参数
 * @param id - id
 */
export const sendOpenCabinetBinDoorOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/{id}/send-open-cabinet-bin-door'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendOpenCabinetBinDoorOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/{id}/send-open-cabinet-bin-door'
}
export const sendOpenCabinetBinDoorOnMobile_TYPE = function() {
  return 'post'
}
export const sendOpenCabinetBinDoorOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/{id}/send-open-cabinet-bin-door'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendRenewChangingOnMobile
 * url: sendRenewChangingOnMobileURL
 * method: sendRenewChangingOnMobile_TYPE
 * raw_url: sendRenewChangingOnMobile_RAW_URL
 * @param body - 实体参数
 * @param id - id
 */
export const sendRenewChangingOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/{id}/send-renew-changing'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendRenewChangingOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/{id}/send-renew-changing'
}
export const sendRenewChangingOnMobile_TYPE = function() {
  return 'post'
}
export const sendRenewChangingOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/{id}/send-renew-changing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendStartChangingOnMobile
 * url: sendStartChangingOnMobileURL
 * method: sendStartChangingOnMobile_TYPE
 * raw_url: sendStartChangingOnMobile_RAW_URL
 * @param body - 实体参数
 * @param id - id
 */
export const sendStartChangingOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/{id}/send-start-changing'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendStartChangingOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/{id}/send-start-changing'
}
export const sendStartChangingOnMobile_TYPE = function() {
  return 'post'
}
export const sendStartChangingOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/{id}/send-start-changing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: sendStopChargingOnMobile
 * url: sendStopChargingOnMobileURL
 * method: sendStopChargingOnMobile_TYPE
 * raw_url: sendStopChargingOnMobile_RAW_URL
 * @param body - 实体参数
 * @param id - id
 */
export const sendStopChargingOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/cabinets/{id}/send-stop-changing'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const sendStopChargingOnMobile_RAW_URL = function() {
  return '/api/mobile/cabinets/{id}/send-stop-changing'
}
export const sendStopChargingOnMobile_TYPE = function() {
  return 'post'
}
export const sendStopChargingOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/cabinets/{id}/send-stop-changing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadChargeByIdOnMobile
 * url: loadChargeByIdOnMobileURL
 * method: loadChargeByIdOnMobile_TYPE
 * raw_url: loadChargeByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const loadChargeByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/charges/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadChargeByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/charges/{id}'
}
export const loadChargeByIdOnMobile_TYPE = function() {
  return 'get'
}
export const loadChargeByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/charges/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserCabinetsOnMobile
* url: listUserCabinetsOnMobileURL
* method: listUserCabinetsOnMobile_TYPE
* raw_url: listUserCabinetsOnMobile_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCabinetCode - 查询条件:充电柜编码，模糊匹配
     * @param searchLat - 查询条件:纬度，大于等于
     * @param searchLng - 查询条件:经度，大于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserCabinetsOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/cabinets'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchLat'] !== undefined) {
    queryParameters['search_lat'] = parameters['searchLat']
  }
  if (parameters['searchLng'] !== undefined) {
    queryParameters['search_lng'] = parameters['searchLng']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserCabinetsOnMobile_RAW_URL = function() {
  return '/api/mobile/user/cabinets'
}
export const listUserCabinetsOnMobile_TYPE = function() {
  return 'get'
}
export const listUserCabinetsOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/cabinets'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchLat'] !== undefined) {
    queryParameters['search_lat'] = parameters['searchLat']
  }
  if (parameters['searchLng'] !== undefined) {
    queryParameters['search_lng'] = parameters['searchLng']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createUserCabinetOnMobile
 * url: createUserCabinetOnMobileURL
 * method: createUserCabinetOnMobile_TYPE
 * raw_url: createUserCabinetOnMobile_RAW_URL
 * @param cabinetId - cabinetId
 */
export const createUserCabinetOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/cabinets/{cabinetId}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{cabinetId}', `${parameters['cabinetId']}`)
  if (parameters['cabinetId'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: cabinetId'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createUserCabinetOnMobile_RAW_URL = function() {
  return '/api/mobile/user/cabinets/{cabinetId}'
}
export const createUserCabinetOnMobile_TYPE = function() {
  return 'post'
}
export const createUserCabinetOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/cabinets/{cabinetId}'
  path = path.replace('{cabinetId}', `${parameters['cabinetId']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteUserCabinetOnMobile
 * url: deleteUserCabinetOnMobileURL
 * method: deleteUserCabinetOnMobile_TYPE
 * raw_url: deleteUserCabinetOnMobile_RAW_URL
 * @param cabinetId - ID
 */
export const deleteUserCabinetOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/cabinets/{cabinetId}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{cabinetId}', `${parameters['cabinetId']}`)
  if (parameters['cabinetId'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: cabinetId'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteUserCabinetOnMobile_RAW_URL = function() {
  return '/api/mobile/user/cabinets/{cabinetId}'
}
export const deleteUserCabinetOnMobile_TYPE = function() {
  return 'delete'
}
export const deleteUserCabinetOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/cabinets/{cabinetId}'
  path = path.replace('{cabinetId}', `${parameters['cabinetId']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserChargingsOnMobile
* url: listUserChargingsOnMobileURL
* method: listUserChargingsOnMobile_TYPE
* raw_url: listUserChargingsOnMobile_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchChargingBeginTime - 查询条件:充电开始时间始，大于等于
     * @param searchChargingEndTime - 查询条件:充电开始时间止，小于等于
     * @param searchCompleteStatus - 查询条件:完成状态，等于
     * @param searchSerialNumber - 查询条件:交易流水号，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserChargingsOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchChargingBeginTime'] !== undefined) {
    queryParameters['search_chargingBeginTime'] = parameters['searchChargingBeginTime']
  }
  if (parameters['searchChargingEndTime'] !== undefined) {
    queryParameters['search_chargingEndTime'] = parameters['searchChargingEndTime']
  }
  if (parameters['searchCompleteStatus'] !== undefined) {
    queryParameters['search_completeStatus'] = parameters['searchCompleteStatus']
  }
  if (parameters['searchCompleteStatus'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: searchCompleteStatus'))
  }
  if (parameters['searchSerialNumber'] !== undefined) {
    queryParameters['search_serialNumber'] = parameters['searchSerialNumber']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserChargingsOnMobile_RAW_URL = function() {
  return '/api/mobile/user/chargings'
}
export const listUserChargingsOnMobile_TYPE = function() {
  return 'get'
}
export const listUserChargingsOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchChargingBeginTime'] !== undefined) {
    queryParameters['search_chargingBeginTime'] = parameters['searchChargingBeginTime']
  }
  if (parameters['searchChargingEndTime'] !== undefined) {
    queryParameters['search_chargingEndTime'] = parameters['searchChargingEndTime']
  }
  if (parameters['searchCompleteStatus'] !== undefined) {
    queryParameters['search_completeStatus'] = parameters['searchCompleteStatus']
  }
  if (parameters['searchSerialNumber'] !== undefined) {
    queryParameters['search_serialNumber'] = parameters['searchSerialNumber']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createWhitelistUserCharging
 * url: createWhitelistUserChargingURL
 * method: createWhitelistUserCharging_TYPE
 * raw_url: createWhitelistUserCharging_RAW_URL
 * @param body - 实体参数
 */
export const createWhitelistUserCharging = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/whitelist'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createWhitelistUserCharging_RAW_URL = function() {
  return '/api/mobile/user/chargings/whitelist'
}
export const createWhitelistUserCharging_TYPE = function() {
  return 'post'
}
export const createWhitelistUserChargingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/whitelist'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createZeroUserCharging
 * url: createZeroUserChargingURL
 * method: createZeroUserCharging_TYPE
 * raw_url: createZeroUserCharging_RAW_URL
 * @param body - 实体参数
 */
export const createZeroUserCharging = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/zero'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createZeroUserCharging_RAW_URL = function() {
  return '/api/mobile/user/chargings/zero'
}
export const createZeroUserCharging_TYPE = function() {
  return 'post'
}
export const createZeroUserChargingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/zero'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadUserChargingByIdOnMobile
 * url: loadUserChargingByIdOnMobileURL
 * method: loadUserChargingByIdOnMobile_TYPE
 * raw_url: loadUserChargingByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const loadUserChargingByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserChargingByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/user/chargings/{id}'
}
export const loadUserChargingByIdOnMobile_TYPE = function() {
  return 'get'
}
export const loadUserChargingByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: userChargingFinish
 * url: userChargingFinishURL
 * method: userChargingFinish_TYPE
 * raw_url: userChargingFinish_RAW_URL
 * @param id - id
 */
export const userChargingFinish = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/{id}/finish'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const userChargingFinish_RAW_URL = function() {
  return '/api/mobile/user/chargings/{id}/finish'
}
export const userChargingFinish_TYPE = function() {
  return 'post'
}
export const userChargingFinishURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/{id}/finish'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: userChargingOpenGate
 * url: userChargingOpenGateURL
 * method: userChargingOpenGate_TYPE
 * raw_url: userChargingOpenGate_RAW_URL
 * @param id - id
 */
export const userChargingOpenGate = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/{id}/open-gate'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const userChargingOpenGate_RAW_URL = function() {
  return '/api/mobile/user/chargings/{id}/open-gate'
}
export const userChargingOpenGate_TYPE = function() {
  return 'post'
}
export const userChargingOpenGateURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/{id}/open-gate'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: userChargingStartCharging
 * url: userChargingStartChargingURL
 * method: userChargingStartCharging_TYPE
 * raw_url: userChargingStartCharging_RAW_URL
 * @param id - id
 */
export const userChargingStartCharging = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/{id}/start-charging'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const userChargingStartCharging_RAW_URL = function() {
  return '/api/mobile/user/chargings/{id}/start-charging'
}
export const userChargingStartCharging_TYPE = function() {
  return 'post'
}
export const userChargingStartChargingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/{id}/start-charging'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: userChargingStopCharging
 * url: userChargingStopChargingURL
 * method: userChargingStopCharging_TYPE
 * raw_url: userChargingStopCharging_RAW_URL
 * @param id - id
 */
export const userChargingStopCharging = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/chargings/{id}/stop-charging'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const userChargingStopCharging_RAW_URL = function() {
  return '/api/mobile/user/chargings/{id}/stop-charging'
}
export const userChargingStopCharging_TYPE = function() {
  return 'post'
}
export const userChargingStopChargingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/chargings/{id}/stop-charging'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserMessagesOnMobile
* url: listUserMessagesOnMobileURL
* method: listUserMessagesOnMobile_TYPE
* raw_url: listUserMessagesOnMobile_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchIsLook - 查询条件:是否查看，等于
     * @param searchSendTimeBegin - 查询条件:发送时间始，大于等于
     * @param searchSendTimeEnd - 查询条件:发送时间止，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserMessagesOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/messages'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchIsLook'] !== undefined) {
    queryParameters['search_isLook'] = parameters['searchIsLook']
  }
  if (parameters['searchSendTimeBegin'] !== undefined) {
    queryParameters['search_sendTimeBegin'] = parameters['searchSendTimeBegin']
  }
  if (parameters['searchSendTimeEnd'] !== undefined) {
    queryParameters['search_sendTimeEnd'] = parameters['searchSendTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserMessagesOnMobile_RAW_URL = function() {
  return '/api/mobile/user/messages'
}
export const listUserMessagesOnMobile_TYPE = function() {
  return 'get'
}
export const listUserMessagesOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/messages'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchIsLook'] !== undefined) {
    queryParameters['search_isLook'] = parameters['searchIsLook']
  }
  if (parameters['searchSendTimeBegin'] !== undefined) {
    queryParameters['search_sendTimeBegin'] = parameters['searchSendTimeBegin']
  }
  if (parameters['searchSendTimeEnd'] !== undefined) {
    queryParameters['search_sendTimeEnd'] = parameters['searchSendTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: batchDeleteUserMessage
 * url: batchDeleteUserMessageURL
 * method: batchDeleteUserMessage_TYPE
 * raw_url: batchDeleteUserMessage_RAW_URL
 */
export const batchDeleteUserMessage = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/messages/batch-delete'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchDeleteUserMessage_RAW_URL = function() {
  return '/api/mobile/user/messages/batch-delete'
}
export const batchDeleteUserMessage_TYPE = function() {
  return 'post'
}
export const batchDeleteUserMessageURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/messages/batch-delete'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: batchReadUserMessage
 * url: batchReadUserMessageURL
 * method: batchReadUserMessage_TYPE
 * raw_url: batchReadUserMessage_RAW_URL
 */
export const batchReadUserMessage = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/messages/batch-read'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchReadUserMessage_RAW_URL = function() {
  return '/api/mobile/user/messages/batch-read'
}
export const batchReadUserMessage_TYPE = function() {
  return 'post'
}
export const batchReadUserMessageURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/messages/batch-read'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadUserMessageByIdOnMobile
 * url: loadUserMessageByIdOnMobileURL
 * method: loadUserMessageByIdOnMobile_TYPE
 * raw_url: loadUserMessageByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const loadUserMessageByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserMessageByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/user/messages/{id}'
}
export const loadUserMessageByIdOnMobile_TYPE = function() {
  return 'get'
}
export const loadUserMessageByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteUserMessageByIdOnMobile
 * url: deleteUserMessageByIdOnMobileURL
 * method: deleteUserMessageByIdOnMobile_TYPE
 * raw_url: deleteUserMessageByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const deleteUserMessageByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteUserMessageByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/user/messages/{id}'
}
export const deleteUserMessageByIdOnMobile_TYPE = function() {
  return 'delete'
}
export const deleteUserMessageByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserPaysOnMobile
* url: listUserPaysOnMobileURL
* method: listUserPaysOnMobile_TYPE
* raw_url: listUserPaysOnMobile_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchBeginTime - 查询条件:支付时间，大于等于
     * @param searchEndTime - 查询条件:支付时间，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserPaysOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchBeginTime'] !== undefined) {
    queryParameters['search_beginTime'] = parameters['searchBeginTime']
  }
  if (parameters['searchEndTime'] !== undefined) {
    queryParameters['search_endTime'] = parameters['searchEndTime']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserPaysOnMobile_RAW_URL = function() {
  return '/api/mobile/user/pays'
}
export const listUserPaysOnMobile_TYPE = function() {
  return 'get'
}
export const listUserPaysOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchBeginTime'] !== undefined) {
    queryParameters['search_beginTime'] = parameters['searchBeginTime']
  }
  if (parameters['searchEndTime'] !== undefined) {
    queryParameters['search_endTime'] = parameters['searchEndTime']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: queryOrderByAlipayMiniApp
 * url: queryOrderByAlipayMiniAppURL
 * method: queryOrderByAlipayMiniApp_TYPE
 * raw_url: queryOrderByAlipayMiniApp_RAW_URL
 * @param outTradeNo - outTradeNo
 */
export const queryOrderByAlipayMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/alipay/out-trade-no/{outTradeNo}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{outTradeNo}', `${parameters['outTradeNo']}`)
  if (parameters['outTradeNo'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: outTradeNo'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryOrderByAlipayMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/alipay/out-trade-no/{outTradeNo}'
}
export const queryOrderByAlipayMiniApp_TYPE = function() {
  return 'get'
}
export const queryOrderByAlipayMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/alipay/out-trade-no/{outTradeNo}'
  path = path.replace('{outTradeNo}', `${parameters['outTradeNo']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: searchProfitsharingResultForAlipayMiniApp
 * url: searchProfitsharingResultForAlipayMiniAppURL
 * method: searchProfitsharingResultForAlipayMiniApp_TYPE
 * raw_url: searchProfitsharingResultForAlipayMiniApp_RAW_URL
 * @param id - id
 */
export const searchProfitsharingResultForAlipayMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/alipay/{id}/profitsharing'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const searchProfitsharingResultForAlipayMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/alipay/{id}/profitsharing'
}
export const searchProfitsharingResultForAlipayMiniApp_TYPE = function() {
  return 'get'
}
export const searchProfitsharingResultForAlipayMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/alipay/{id}/profitsharing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: profitsharingForAlipayMiniApp
 * url: profitsharingForAlipayMiniAppURL
 * method: profitsharingForAlipayMiniApp_TYPE
 * raw_url: profitsharingForAlipayMiniApp_RAW_URL
 * @param id - id
 */
export const profitsharingForAlipayMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/alipay/{id}/profitsharing'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const profitsharingForAlipayMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/alipay/{id}/profitsharing'
}
export const profitsharingForAlipayMiniApp_TYPE = function() {
  return 'put'
}
export const profitsharingForAlipayMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/alipay/{id}/profitsharing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createOrderByAlipayMiniApp
 * url: createOrderByAlipayMiniAppURL
 * method: createOrderByAlipayMiniApp_TYPE
 * raw_url: createOrderByAlipayMiniApp_RAW_URL
 * @param body - 实体参数
 */
export const createOrderByAlipayMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/create-order-by-alipay-mini-app'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createOrderByAlipayMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/create-order-by-alipay-mini-app'
}
export const createOrderByAlipayMiniApp_TYPE = function() {
  return 'post'
}
export const createOrderByAlipayMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/create-order-by-alipay-mini-app'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createOrderByWechatMiniApp
 * url: createOrderByWechatMiniAppURL
 * method: createOrderByWechatMiniApp_TYPE
 * raw_url: createOrderByWechatMiniApp_RAW_URL
 * @param body - 实体参数
 */
export const createOrderByWechatMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/create-order-by-wechat-mini-app'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createOrderByWechatMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/create-order-by-wechat-mini-app'
}
export const createOrderByWechatMiniApp_TYPE = function() {
  return 'post'
}
export const createOrderByWechatMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/create-order-by-wechat-mini-app'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: payNotifyForAlipayMiniApp
 * url: payNotifyForAlipayMiniAppURL
 * method: payNotifyForAlipayMiniApp_TYPE
 * raw_url: payNotifyForAlipayMiniApp_RAW_URL
 * @param body - body
 */
export const payNotifyForAlipayMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/pay-notify-for-alipay-mini-app'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters['body'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: body'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const payNotifyForAlipayMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/pay-notify-for-alipay-mini-app'
}
export const payNotifyForAlipayMiniApp_TYPE = function() {
  return 'post'
}
export const payNotifyForAlipayMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/pay-notify-for-alipay-mini-app'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: payNotifyForWechatMiniApp
 * url: payNotifyForWechatMiniAppURL
 * method: payNotifyForWechatMiniApp_TYPE
 * raw_url: payNotifyForWechatMiniApp_RAW_URL
 * @param body - body
 */
export const payNotifyForWechatMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/pay-notify-for-wechat-mini-app'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters['body'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: body'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const payNotifyForWechatMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/pay-notify-for-wechat-mini-app'
}
export const payNotifyForWechatMiniApp_TYPE = function() {
  return 'post'
}
export const payNotifyForWechatMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/pay-notify-for-wechat-mini-app'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: queryOrderByWechatMiniApp
 * url: queryOrderByWechatMiniAppURL
 * method: queryOrderByWechatMiniApp_TYPE
 * raw_url: queryOrderByWechatMiniApp_RAW_URL
 * @param outTradeNo - outTradeNo
 */
export const queryOrderByWechatMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/wechat/out-trade-no/{outTradeNo}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{outTradeNo}', `${parameters['outTradeNo']}`)
  if (parameters['outTradeNo'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: outTradeNo'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const queryOrderByWechatMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/wechat/out-trade-no/{outTradeNo}'
}
export const queryOrderByWechatMiniApp_TYPE = function() {
  return 'get'
}
export const queryOrderByWechatMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/wechat/out-trade-no/{outTradeNo}'
  path = path.replace('{outTradeNo}', `${parameters['outTradeNo']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: searchProfitsharingResultForWechatMiniApp
 * url: searchProfitsharingResultForWechatMiniAppURL
 * method: searchProfitsharingResultForWechatMiniApp_TYPE
 * raw_url: searchProfitsharingResultForWechatMiniApp_RAW_URL
 * @param id - id
 */
export const searchProfitsharingResultForWechatMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/wechat/{id}/profitsharing'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const searchProfitsharingResultForWechatMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/wechat/{id}/profitsharing'
}
export const searchProfitsharingResultForWechatMiniApp_TYPE = function() {
  return 'get'
}
export const searchProfitsharingResultForWechatMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/wechat/{id}/profitsharing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: profitsharingForWechatMiniApp
 * url: profitsharingForWechatMiniAppURL
 * method: profitsharingForWechatMiniApp_TYPE
 * raw_url: profitsharingForWechatMiniApp_RAW_URL
 * @param id - id
 */
export const profitsharingForWechatMiniApp = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/wechat/{id}/profitsharing'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const profitsharingForWechatMiniApp_RAW_URL = function() {
  return '/api/mobile/user/pays/wechat/{id}/profitsharing'
}
export const profitsharingForWechatMiniApp_TYPE = function() {
  return 'put'
}
export const profitsharingForWechatMiniAppURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/wechat/{id}/profitsharing'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadUserPayByIdOnMobile
 * url: loadUserPayByIdOnMobileURL
 * method: loadUserPayByIdOnMobile_TYPE
 * raw_url: loadUserPayByIdOnMobile_RAW_URL
 * @param id - ID
 */
export const loadUserPayByIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/pays/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserPayByIdOnMobile_RAW_URL = function() {
  return '/api/mobile/user/pays/{id}'
}
export const loadUserPayByIdOnMobile_TYPE = function() {
  return 'get'
}
export const loadUserPayByIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/pays/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: checkWhiteListByCabinetIdOnMobile
 * url: checkWhiteListByCabinetIdOnMobileURL
 * method: checkWhiteListByCabinetIdOnMobile_TYPE
 * raw_url: checkWhiteListByCabinetIdOnMobile_RAW_URL
 * @param id - ID
 */
export const checkWhiteListByCabinetIdOnMobile = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/mobile/user/user-additional-organizations/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const checkWhiteListByCabinetIdOnMobile_RAW_URL = function() {
  return '/api/mobile/user/user-additional-organizations/{id}'
}
export const checkWhiteListByCabinetIdOnMobile_TYPE = function() {
  return 'get'
}
export const checkWhiteListByCabinetIdOnMobileURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/mobile/user/user-additional-organizations/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listNetworks
* url: listNetworksURL
* method: listNetworks_TYPE
* raw_url: listNetworks_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchAddress - 查询条件:地址，模糊匹配
     * @param searchArea - 查询条件:行政区划ID，等于
     * @param searchCode - 查询条件:编码，模糊匹配
     * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考DataRang枚举
     * @param searchIsPrivate - 查询条件:是否私有，等于
     * @param searchLinkMan - 查询条件:联系人，模糊匹配
     * @param searchLinkManPhone - 查询条件:联系电话，模糊匹配
     * @param searchName - 查询条件:名称，模糊匹配
     * @param searchOrganizationId - 查询条件:组织机构ID，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listNetworks = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAddress'] !== undefined) {
    queryParameters['search_address'] = parameters['searchAddress']
  }
  if (parameters['searchArea'] !== undefined) {
    queryParameters['search_area'] = parameters['searchArea']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsPrivate'] !== undefined) {
    queryParameters['search_isPrivate'] = parameters['searchIsPrivate']
  }
  if (parameters['searchLinkMan'] !== undefined) {
    queryParameters['search_linkMan'] = parameters['searchLinkMan']
  }
  if (parameters['searchLinkManPhone'] !== undefined) {
    queryParameters['search_linkManPhone'] = parameters['searchLinkManPhone']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listNetworks_RAW_URL = function() {
  return '/api/networks'
}
export const listNetworks_TYPE = function() {
  return 'get'
}
export const listNetworksURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAddress'] !== undefined) {
    queryParameters['search_address'] = parameters['searchAddress']
  }
  if (parameters['searchArea'] !== undefined) {
    queryParameters['search_area'] = parameters['searchArea']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchIsPrivate'] !== undefined) {
    queryParameters['search_isPrivate'] = parameters['searchIsPrivate']
  }
  if (parameters['searchLinkMan'] !== undefined) {
    queryParameters['search_linkMan'] = parameters['searchLinkMan']
  }
  if (parameters['searchLinkManPhone'] !== undefined) {
    queryParameters['search_linkManPhone'] = parameters['searchLinkManPhone']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createNetwork
 * url: createNetworkURL
 * method: createNetwork_TYPE
 * raw_url: createNetwork_RAW_URL
 * @param body - 实体参数
 */
export const createNetwork = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createNetwork_RAW_URL = function() {
  return '/api/networks'
}
export const createNetwork_TYPE = function() {
  return 'post'
}
export const createNetworkURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为场站列表，失败：code!=200
 * request: listNetworksAll
 * url: listNetworksAllURL
 * method: listNetworksAll_TYPE
 * raw_url: listNetworksAll_RAW_URL
 * @param searchDataRang - 查询条件:数据范围，精确匹配，具体参考DataRang枚举
 * @param searchOrganizationId - 查询条件:组织结构ID，等于
 */
export const listNetworksAll = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listNetworksAll_RAW_URL = function() {
  return '/api/networks/all'
}
export const listNetworksAll_TYPE = function() {
  return 'get'
}
export const listNetworksAllURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/all'
  if (parameters['searchDataRang'] !== undefined) {
    queryParameters['search_dataRang'] = parameters['searchDataRang']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: geoCoder
 * url: geoCoderURL
 * method: geoCoder_TYPE
 * raw_url: geoCoder_RAW_URL
 * @param callback - 
 * @param getPoi - 
 * @param key - 
 * @param location - 
 * @param output - 
 * @param poiOptions - 
 */
export const geoCoder = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/geoCoder'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['callback'] !== undefined) {
    queryParameters['callback'] = parameters['callback']
  }
  if (parameters['getPoi'] !== undefined) {
    queryParameters['getPoi'] = parameters['getPoi']
  }
  if (parameters['key'] !== undefined) {
    queryParameters['key'] = parameters['key']
  }
  if (parameters['location'] !== undefined) {
    queryParameters['location'] = parameters['location']
  }
  if (parameters['output'] !== undefined) {
    queryParameters['output'] = parameters['output']
  }
  if (parameters['poiOptions'] !== undefined) {
    queryParameters['poiOptions'] = parameters['poiOptions']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const geoCoder_RAW_URL = function() {
  return '/api/networks/geoCoder'
}
export const geoCoder_TYPE = function() {
  return 'get'
}
export const geoCoderURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/geoCoder'
  if (parameters['callback'] !== undefined) {
    queryParameters['callback'] = parameters['callback']
  }
  if (parameters['getPoi'] !== undefined) {
    queryParameters['getPoi'] = parameters['getPoi']
  }
  if (parameters['key'] !== undefined) {
    queryParameters['key'] = parameters['key']
  }
  if (parameters['location'] !== undefined) {
    queryParameters['location'] = parameters['location']
  }
  if (parameters['output'] !== undefined) {
    queryParameters['output'] = parameters['output']
  }
  if (parameters['poiOptions'] !== undefined) {
    queryParameters['poiOptions'] = parameters['poiOptions']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为信息，失败：code!=200
 * request: loadNetworkById
 * url: loadNetworkByIdURL
 * method: loadNetworkById_TYPE
 * raw_url: loadNetworkById_RAW_URL
 * @param id - ID
 */
export const loadNetworkById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadNetworkById_RAW_URL = function() {
  return '/api/networks/{id}'
}
export const loadNetworkById_TYPE = function() {
  return 'get'
}
export const loadNetworkByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateNetwork
 * url: updateNetworkURL
 * method: updateNetwork_TYPE
 * raw_url: updateNetwork_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateNetwork = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateNetwork_RAW_URL = function() {
  return '/api/networks/{id}'
}
export const updateNetwork_TYPE = function() {
  return 'put'
}
export const updateNetworkURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteNetworkById
 * url: deleteNetworkByIdURL
 * method: deleteNetworkById_TYPE
 * raw_url: deleteNetworkById_RAW_URL
 * @param id - ID
 */
export const deleteNetworkById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteNetworkById_RAW_URL = function() {
  return '/api/networks/{id}'
}
export const deleteNetworkById_TYPE = function() {
  return 'delete'
}
export const deleteNetworkByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableNetworkById
 * url: disableNetworkByIdURL
 * method: disableNetworkById_TYPE
 * raw_url: disableNetworkById_RAW_URL
 * @param id - ID
 */
export const disableNetworkById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableNetworkById_RAW_URL = function() {
  return '/api/networks/{id}/disable'
}
export const disableNetworkById_TYPE = function() {
  return 'put'
}
export const disableNetworkByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableNetworkById
 * url: enableNetworkByIdURL
 * method: enableNetworkById_TYPE
 * raw_url: enableNetworkById_RAW_URL
 * @param id - ID
 */
export const enableNetworkById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/networks/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableNetworkById_RAW_URL = function() {
  return '/api/networks/{id}/enable'
}
export const enableNetworkById_TYPE = function() {
  return 'put'
}
export const enableNetworkByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/networks/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序字段：code,name,description,parent.id,parent.name,sortIndex,isEnable,createTime
成功：code=200，data对象为包含分页信息的组织机构列表，失败：code!=200
* request: listOrganizations
* url: listOrganizationsURL
* method: listOrganizations_TYPE
* raw_url: listOrganizations_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:组织机构代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:组织机构描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchName - 查询条件:组织机构名称，模糊匹配
     * @param searchParentId - 查询条件:上级组织机构ID，精确匹配
     * @param searchParentIds - 查询条件:上级组织机构ID数组，精确匹配
     * @param searchParentName - 查询条件:上级组织机构名称，模糊匹配
     * @param searchSpecificCode - 查询条件:组织机构代码，精确匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listOrganizations = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentIds'] !== undefined) {
    queryParameters['search_parentIds'] = parameters['searchParentIds']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchSpecificCode'] !== undefined) {
    queryParameters['search_specificCode'] = parameters['searchSpecificCode']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listOrganizations_RAW_URL = function() {
  return '/api/organizations'
}
export const listOrganizations_TYPE = function() {
  return 'get'
}
export const listOrganizationsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentIds'] !== undefined) {
    queryParameters['search_parentIds'] = parameters['searchParentIds']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchSpecificCode'] !== undefined) {
    queryParameters['search_specificCode'] = parameters['searchSpecificCode']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createOrganization
 * url: createOrganizationURL
 * method: createOrganization_TYPE
 * raw_url: createOrganization_RAW_URL
 * @param body - 组织机构实体参数
 */
export const createOrganization = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createOrganization_RAW_URL = function() {
  return '/api/organizations'
}
export const createOrganization_TYPE = function() {
  return 'post'
}
export const createOrganizationURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含分页信息的组织机构列表，失败：code!=200
 * request: organizationsTree
 * url: organizationsTreeURL
 * method: organizationsTree_TYPE
 * raw_url: organizationsTree_RAW_URL
 */
export const organizationsTree = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/tree'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const organizationsTree_RAW_URL = function() {
  return '/api/organizations/tree'
}
export const organizationsTree_TYPE = function() {
  return 'get'
}
export const organizationsTreeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/tree'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为组织机构信息，失败：code!=200
 * request: loadOrganizationById
 * url: loadOrganizationByIdURL
 * method: loadOrganizationById_TYPE
 * raw_url: loadOrganizationById_RAW_URL
 * @param id - 组织机构ID
 */
export const loadOrganizationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadOrganizationById_RAW_URL = function() {
  return '/api/organizations/{id}'
}
export const loadOrganizationById_TYPE = function() {
  return 'get'
}
export const loadOrganizationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateOrganization
 * url: updateOrganizationURL
 * method: updateOrganization_TYPE
 * raw_url: updateOrganization_RAW_URL
 * @param body - 组织机构实体参数
 * @param id - 组织机构id
 */
export const updateOrganization = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateOrganization_RAW_URL = function() {
  return '/api/organizations/{id}'
}
export const updateOrganization_TYPE = function() {
  return 'put'
}
export const updateOrganizationURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: deleteOrganizationById
 * url: deleteOrganizationByIdURL
 * method: deleteOrganizationById_TYPE
 * raw_url: deleteOrganizationById_RAW_URL
 * @param id - 组织机构ID
 */
export const deleteOrganizationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteOrganizationById_RAW_URL = function() {
  return '/api/organizations/{id}'
}
export const deleteOrganizationById_TYPE = function() {
  return 'delete'
}
export const deleteOrganizationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateOrganizationPatch
 * url: updateOrganizationPatchURL
 * method: updateOrganizationPatch_TYPE
 * raw_url: updateOrganizationPatch_RAW_URL
 * @param body - 组织机构实体参数
 * @param id - 组织机构id
 */
export const updateOrganizationPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateOrganizationPatch_RAW_URL = function() {
  return '/api/organizations/{id}'
}
export const updateOrganizationPatch_TYPE = function() {
  return 'patch'
}
export const updateOrganizationPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableOrganizationById
 * url: disableOrganizationByIdURL
 * method: disableOrganizationById_TYPE
 * raw_url: disableOrganizationById_RAW_URL
 * @param id - 组织机构id
 */
export const disableOrganizationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableOrganizationById_RAW_URL = function() {
  return '/api/organizations/{id}/disable'
}
export const disableOrganizationById_TYPE = function() {
  return 'put'
}
export const disableOrganizationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableOrganizationById
 * url: enableOrganizationByIdURL
 * method: enableOrganizationById_TYPE
 * raw_url: enableOrganizationById_RAW_URL
 * @param id - 组织机构id
 */
export const enableOrganizationById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/organizations/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableOrganizationById_RAW_URL = function() {
  return '/api/organizations/{id}/enable'
}
export const enableOrganizationById_TYPE = function() {
  return 'put'
}
export const enableOrganizationByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/organizations/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：type,code,name,url,icon,description,parent.id,parent.code,
parent.name,sortIndex,isEnable,createTime
成功：code=200，data对象为包含分页信息的权限列表，失败：code!=200
* request: listPermissions
* url: listPermissionsURL
* method: listPermissions_TYPE
* raw_url: listPermissions_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchApplicationId - 查询条件:应用id，精确匹配
     * @param searchCode - 查询条件:权限代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:权限描述，模糊匹配
     * @param searchIcon - 查询条件:权限图标，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchName - 查询条件:权限名称，模糊匹配
     * @param searchParentCode - 查询条件:上级权限代码，模糊匹配
     * @param searchParentId - 查询条件:上级权限ID，精确匹配
     * @param searchParentName - 查询条件:上级权限名称，模糊匹配
     * @param searchType - 查询条件:权限类型，精确匹配
     * @param searchUrl - 查询条件:权限地址，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listPermissions = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIcon'] !== undefined) {
    queryParameters['search_icon'] = parameters['searchIcon']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listPermissions_RAW_URL = function() {
  return '/api/permissions'
}
export const listPermissions_TYPE = function() {
  return 'get'
}
export const listPermissionsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIcon'] !== undefined) {
    queryParameters['search_icon'] = parameters['searchIcon']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchParentCode'] !== undefined) {
    queryParameters['search_parentCode'] = parameters['searchParentCode']
  }
  if (parameters['searchParentId'] !== undefined) {
    queryParameters['search_parentId'] = parameters['searchParentId']
  }
  if (parameters['searchParentName'] !== undefined) {
    queryParameters['search_parentName'] = parameters['searchParentName']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createPermission
 * url: createPermissionURL
 * method: createPermission_TYPE
 * raw_url: createPermission_RAW_URL
 * @param body - 权限实体参数
 */
export const createPermission = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createPermission_RAW_URL = function() {
  return '/api/permissions'
}
export const createPermission_TYPE = function() {
  return 'post'
}
export const createPermissionURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为包含分页信息的权限列表，失败：code!=200
 * request: listPermissionsTree
 * url: listPermissionsTreeURL
 * method: listPermissionsTree_TYPE
 * raw_url: listPermissionsTree_RAW_URL
 * @param searchApplicationId - 查询条件:应用id，精确匹配
 * @param searchType - 查询条件:权限类型，精确匹配
 * @param searchTypes - 查询条件:权限类型，精确匹配
 */
export const listPermissionsTree = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions/tree'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchTypes'] !== undefined) {
    queryParameters['search_types'] = parameters['searchTypes']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listPermissionsTree_RAW_URL = function() {
  return '/api/permissions/tree'
}
export const listPermissionsTree_TYPE = function() {
  return 'get'
}
export const listPermissionsTreeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions/tree'
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchTypes'] !== undefined) {
    queryParameters['search_types'] = parameters['searchTypes']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadPermissionById
 * url: loadPermissionByIdURL
 * method: loadPermissionById_TYPE
 * raw_url: loadPermissionById_RAW_URL
 * @param id - 权限ID
 */
export const loadPermissionById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadPermissionById_RAW_URL = function() {
  return '/api/permissions/{id}'
}
export const loadPermissionById_TYPE = function() {
  return 'get'
}
export const loadPermissionByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updatePermission
 * url: updatePermissionURL
 * method: updatePermission_TYPE
 * raw_url: updatePermission_RAW_URL
 * @param body - 权限实体参数
 * @param id - 权限id
 */
export const updatePermission = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updatePermission_RAW_URL = function() {
  return '/api/permissions/{id}'
}
export const updatePermission_TYPE = function() {
  return 'put'
}
export const updatePermissionURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deletePermissionById
 * url: deletePermissionByIdURL
 * method: deletePermissionById_TYPE
 * raw_url: deletePermissionById_RAW_URL
 * @param id - 权限ID
 */
export const deletePermissionById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deletePermissionById_RAW_URL = function() {
  return '/api/permissions/{id}'
}
export const deletePermissionById_TYPE = function() {
  return 'delete'
}
export const deletePermissionByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updatePermissionPatch
 * url: updatePermissionPatchURL
 * method: updatePermissionPatch_TYPE
 * raw_url: updatePermissionPatch_RAW_URL
 * @param body - 权限实体参数
 * @param id - 权限id
 */
export const updatePermissionPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/permissions/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updatePermissionPatch_RAW_URL = function() {
  return '/api/permissions/{id}'
}
export const updatePermissionPatch_TYPE = function() {
  return 'patch'
}
export const updatePermissionPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/permissions/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为user信息，失败：code!=0
 * request: principal
 * url: principalURL
 * method: principal_TYPE
 * raw_url: principal_RAW_URL
 */
export const principal = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/principal'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const principal_RAW_URL = function() {
  return '/api/principal'
}
export const principal_TYPE = function() {
  return 'get'
}
export const principalURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/principal'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：objectType,objectName,stringName1,stringName2,stringName3,longName1,longName2,longName3,doubleName1,doubleName2,doubleName3,dateName1,dateName2,dateName3,isEnable,createTime
成功：code=200，data对象为包含分页信息的保留字段配置列表，失败：code!=200
* request: listReservableConfigs
* url: listReservableConfigsURL
* method: listReservableConfigs_TYPE
* raw_url: listReservableConfigs_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDateName1 - 查询条件:日期字段1名称，模糊匹配
     * @param searchDateName2 - 查询条件:日期字段2名称，模糊匹配
     * @param searchDateName3 - 查询条件:日期字段3名称，模糊匹配
     * @param searchDoubleName1 - 查询条件:小数字段1名称，模糊匹配
     * @param searchDoubleName2 - 查询条件:小数字段2名称，模糊匹配
     * @param searchDoubleName3 - 查询条件:小数字段3名称，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchLongName1 - 查询条件:整型字段1名称，模糊匹配
     * @param searchLongName2 - 查询条件:整型字段2名称，模糊匹配
     * @param searchLongName3 - 查询条件:整型字段3名称，模糊匹配
     * @param searchObjectName - 查询条件:配置对象名称，模糊匹配
     * @param searchObjectType - 查询条件:配置对象类型，模糊匹配
     * @param searchStringName1 - 查询条件:字符字段1名称，模糊匹配
     * @param searchStringName2 - 查询条件:字符字段2名称，模糊匹配
     * @param searchStringName3 - 查询条件:字符字段3名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listReservableConfigs = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDateName1'] !== undefined) {
    queryParameters['search_dateName1'] = parameters['searchDateName1']
  }
  if (parameters['searchDateName2'] !== undefined) {
    queryParameters['search_dateName2'] = parameters['searchDateName2']
  }
  if (parameters['searchDateName3'] !== undefined) {
    queryParameters['search_dateName3'] = parameters['searchDateName3']
  }
  if (parameters['searchDoubleName1'] !== undefined) {
    queryParameters['search_doubleName1'] = parameters['searchDoubleName1']
  }
  if (parameters['searchDoubleName2'] !== undefined) {
    queryParameters['search_doubleName2'] = parameters['searchDoubleName2']
  }
  if (parameters['searchDoubleName3'] !== undefined) {
    queryParameters['search_doubleName3'] = parameters['searchDoubleName3']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchLongName1'] !== undefined) {
    queryParameters['search_longName1'] = parameters['searchLongName1']
  }
  if (parameters['searchLongName2'] !== undefined) {
    queryParameters['search_longName2'] = parameters['searchLongName2']
  }
  if (parameters['searchLongName3'] !== undefined) {
    queryParameters['search_longName3'] = parameters['searchLongName3']
  }
  if (parameters['searchObjectName'] !== undefined) {
    queryParameters['search_objectName'] = parameters['searchObjectName']
  }
  if (parameters['searchObjectType'] !== undefined) {
    queryParameters['search_objectType'] = parameters['searchObjectType']
  }
  if (parameters['searchStringName1'] !== undefined) {
    queryParameters['search_stringName1'] = parameters['searchStringName1']
  }
  if (parameters['searchStringName2'] !== undefined) {
    queryParameters['search_stringName2'] = parameters['searchStringName2']
  }
  if (parameters['searchStringName3'] !== undefined) {
    queryParameters['search_stringName3'] = parameters['searchStringName3']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listReservableConfigs_RAW_URL = function() {
  return '/api/reservableConfigs'
}
export const listReservableConfigs_TYPE = function() {
  return 'get'
}
export const listReservableConfigsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDateName1'] !== undefined) {
    queryParameters['search_dateName1'] = parameters['searchDateName1']
  }
  if (parameters['searchDateName2'] !== undefined) {
    queryParameters['search_dateName2'] = parameters['searchDateName2']
  }
  if (parameters['searchDateName3'] !== undefined) {
    queryParameters['search_dateName3'] = parameters['searchDateName3']
  }
  if (parameters['searchDoubleName1'] !== undefined) {
    queryParameters['search_doubleName1'] = parameters['searchDoubleName1']
  }
  if (parameters['searchDoubleName2'] !== undefined) {
    queryParameters['search_doubleName2'] = parameters['searchDoubleName2']
  }
  if (parameters['searchDoubleName3'] !== undefined) {
    queryParameters['search_doubleName3'] = parameters['searchDoubleName3']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchLongName1'] !== undefined) {
    queryParameters['search_longName1'] = parameters['searchLongName1']
  }
  if (parameters['searchLongName2'] !== undefined) {
    queryParameters['search_longName2'] = parameters['searchLongName2']
  }
  if (parameters['searchLongName3'] !== undefined) {
    queryParameters['search_longName3'] = parameters['searchLongName3']
  }
  if (parameters['searchObjectName'] !== undefined) {
    queryParameters['search_objectName'] = parameters['searchObjectName']
  }
  if (parameters['searchObjectType'] !== undefined) {
    queryParameters['search_objectType'] = parameters['searchObjectType']
  }
  if (parameters['searchStringName1'] !== undefined) {
    queryParameters['search_stringName1'] = parameters['searchStringName1']
  }
  if (parameters['searchStringName2'] !== undefined) {
    queryParameters['search_stringName2'] = parameters['searchStringName2']
  }
  if (parameters['searchStringName3'] !== undefined) {
    queryParameters['search_stringName3'] = parameters['searchStringName3']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createReservableConfig
 * url: createReservableConfigURL
 * method: createReservableConfig_TYPE
 * raw_url: createReservableConfig_RAW_URL
 * @param body - 预留字段配置实体参数
 */
export const createReservableConfig = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createReservableConfig_RAW_URL = function() {
  return '/api/reservableConfigs'
}
export const createReservableConfig_TYPE = function() {
  return 'post'
}
export const createReservableConfigURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadReservableConfigByObjectType
 * url: loadReservableConfigByObjectTypeURL
 * method: loadReservableConfigByObjectType_TYPE
 * raw_url: loadReservableConfigByObjectType_RAW_URL
 * @param objectType - 预留字段配置类型
 */
export const loadReservableConfigByObjectType = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs/objectType/{objectType}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{objectType}', `${parameters['objectType']}`)
  if (parameters['objectType'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: objectType'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadReservableConfigByObjectType_RAW_URL = function() {
  return '/api/reservableConfigs/objectType/{objectType}'
}
export const loadReservableConfigByObjectType_TYPE = function() {
  return 'get'
}
export const loadReservableConfigByObjectTypeURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs/objectType/{objectType}'
  path = path.replace('{objectType}', `${parameters['objectType']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadReservableConfigById
 * url: loadReservableConfigByIdURL
 * method: loadReservableConfigById_TYPE
 * raw_url: loadReservableConfigById_RAW_URL
 * @param id - 预留字段配置ID
 */
export const loadReservableConfigById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadReservableConfigById_RAW_URL = function() {
  return '/api/reservableConfigs/{id}'
}
export const loadReservableConfigById_TYPE = function() {
  return 'get'
}
export const loadReservableConfigByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateReservableConfig
 * url: updateReservableConfigURL
 * method: updateReservableConfig_TYPE
 * raw_url: updateReservableConfig_RAW_URL
 * @param body - 预留字段配置实体参数
 * @param id - 预留字段配置ID
 */
export const updateReservableConfig = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateReservableConfig_RAW_URL = function() {
  return '/api/reservableConfigs/{id}'
}
export const updateReservableConfig_TYPE = function() {
  return 'put'
}
export const updateReservableConfigURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为预留字段配置信息，失败：code!=0
 * request: deleteReservableConfigById
 * url: deleteReservableConfigByIdURL
 * method: deleteReservableConfigById_TYPE
 * raw_url: deleteReservableConfigById_RAW_URL
 * @param id - 预留字段配置ID
 */
export const deleteReservableConfigById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteReservableConfigById_RAW_URL = function() {
  return '/api/reservableConfigs/{id}'
}
export const deleteReservableConfigById_TYPE = function() {
  return 'delete'
}
export const deleteReservableConfigByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateReservableConfigPatch
 * url: updateReservableConfigPatchURL
 * method: updateReservableConfigPatch_TYPE
 * raw_url: updateReservableConfigPatch_RAW_URL
 * @param body - 预留字段配置实体参数
 * @param id - 预留字段配置id
 */
export const updateReservableConfigPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/reservableConfigs/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateReservableConfigPatch_RAW_URL = function() {
  return '/api/reservableConfigs/{id}'
}
export const updateReservableConfigPatch_TYPE = function() {
  return 'patch'
}
export const updateReservableConfigPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/reservableConfigs/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listResources
* url: listResourcesURL
* method: listResources_TYPE
* raw_url: listResources_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchCode - 查询条件:资源代码，等于
     * @param searchDescription - 查询条件:资源描述，等于
     * @param searchName - 查询条件:资源名称，等于
     * @param searchService - 查询条件:资源ID，等于
     * @param searchSortIndex - 查询条件:排序索引，等于
     * @param searchType - 查询条件:资源类型，1：Spring Cloud资源，2：HTTP资源，等于
     * @param searchUrl - 查询条件:URL地址，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listResources = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/resources'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchService'] !== undefined) {
    queryParameters['search_service'] = parameters['searchService']
  }
  if (parameters['searchSortIndex'] !== undefined) {
    queryParameters['search_sortIndex'] = parameters['searchSortIndex']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listResources_RAW_URL = function() {
  return '/api/resources'
}
export const listResources_TYPE = function() {
  return 'get'
}
export const listResourcesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/resources'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchService'] !== undefined) {
    queryParameters['search_service'] = parameters['searchService']
  }
  if (parameters['searchSortIndex'] !== undefined) {
    queryParameters['search_sortIndex'] = parameters['searchSortIndex']
  }
  if (parameters['searchType'] !== undefined) {
    queryParameters['search_type'] = parameters['searchType']
  }
  if (parameters['searchUrl'] !== undefined) {
    queryParameters['search_url'] = parameters['searchUrl']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createResource
 * url: createResourceURL
 * method: createResource_TYPE
 * raw_url: createResource_RAW_URL
 * @param body - 实体参数
 */
export const createResource = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/resources'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createResource_RAW_URL = function() {
  return '/api/resources'
}
export const createResource_TYPE = function() {
  return 'post'
}
export const createResourceURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/resources'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadResourceById
 * url: loadResourceByIdURL
 * method: loadResourceById_TYPE
 * raw_url: loadResourceById_RAW_URL
 * @param id - ID
 */
export const loadResourceById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/resources/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadResourceById_RAW_URL = function() {
  return '/api/resources/{id}'
}
export const loadResourceById_TYPE = function() {
  return 'get'
}
export const loadResourceByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/resources/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateResource
 * url: updateResourceURL
 * method: updateResource_TYPE
 * raw_url: updateResource_RAW_URL
 * @param body - 实体参数
 * @param id - ID
 */
export const updateResource = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/resources/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateResource_RAW_URL = function() {
  return '/api/resources/{id}'
}
export const updateResource_TYPE = function() {
  return 'put'
}
export const updateResourceURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/resources/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteResourceById
 * url: deleteResourceByIdURL
 * method: deleteResourceById_TYPE
 * raw_url: deleteResourceById_RAW_URL
 * @param id - ID
 */
export const deleteResourceById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/resources/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteResourceById_RAW_URL = function() {
  return '/api/resources/{id}'
}
export const deleteResourceById_TYPE = function() {
  return 'delete'
}
export const deleteResourceByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/resources/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：code,name,description,level.code,level.name,isSystem,isEnable,createTime
成功：code=200，data对象为包含分页信息的角色列表，失败：code!=200
* request: listRoles
* url: listRolesURL
* method: listRoles_TYPE
* raw_url: listRoles_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchApplicationId - 查询条件:应用id，精准匹配
     * @param searchCode - 查询条件:角色代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:角色描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchIsSystem - 查询条件:是否系统角色，1：是，0：否，精确匹配
     * @param searchLevel - 查询条件:角色级别，对应角色字典，精确匹配
     * @param searchLevelName - 查询条件:角色级别名称，模糊匹配
     * @param searchName - 查询条件:角色名称，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listRoles = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listRoles_RAW_URL = function() {
  return '/api/roles'
}
export const listRoles_TYPE = function() {
  return 'get'
}
export const listRolesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createRole
 * url: createRoleURL
 * method: createRole_TYPE
 * raw_url: createRole_RAW_URL
 * @param body - 角色实体参数
 */
export const createRole = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createRole_RAW_URL = function() {
  return '/api/roles'
}
export const createRole_TYPE = function() {
  return 'post'
}
export const createRoleURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：code,name,description,level.code,level.name,isSystem,isEnable,createTime
成功：code=200，data对象为角色列表，失败：code!=200
* request: listAllRoles
* url: listAllRolesURL
* method: listAllRoles_TYPE
* raw_url: listAllRoles_RAW_URL
     * @param searchApplicationId - 查询条件:应用id，精准匹配
     * @param searchCode - 查询条件:角色代码，模糊匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDescription - 查询条件:角色描述，模糊匹配
     * @param searchIsEnable - 查询条件:是否可用，，1：是，0：否，精确匹配
     * @param searchIsSystem - 查询条件:是否系统角色，1：是，0：否，精确匹配
     * @param searchLevel - 查询条件:角色级别，对应角色字典，精确匹配
     * @param searchLevelName - 查询条件:角色级别名称，模糊匹配
     * @param searchName - 查询条件:角色名称，模糊匹配
*/
export const listAllRoles = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/all'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listAllRoles_RAW_URL = function() {
  return '/api/roles/all'
}
export const listAllRoles_TYPE = function() {
  return 'get'
}
export const listAllRolesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/all'
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCode'] !== undefined) {
    queryParameters['search_code'] = parameters['searchCode']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDescription'] !== undefined) {
    queryParameters['search_description'] = parameters['searchDescription']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchIsSystem'] !== undefined) {
    queryParameters['search_isSystem'] = parameters['searchIsSystem']
  }
  if (parameters['searchLevel'] !== undefined) {
    queryParameters['search_level'] = parameters['searchLevel']
  }
  if (parameters['searchLevelName'] !== undefined) {
    queryParameters['search_levelName'] = parameters['searchLevelName']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadRoleById
 * url: loadRoleByIdURL
 * method: loadRoleById_TYPE
 * raw_url: loadRoleById_RAW_URL
 * @param id - 角色ID
 */
export const loadRoleById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadRoleById_RAW_URL = function() {
  return '/api/roles/{id}'
}
export const loadRoleById_TYPE = function() {
  return 'get'
}
export const loadRoleByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateRole
 * url: updateRoleURL
 * method: updateRole_TYPE
 * raw_url: updateRole_RAW_URL
 * @param body - 角色实体参数
 * @param id - 角色id
 */
export const updateRole = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateRole_RAW_URL = function() {
  return '/api/roles/{id}'
}
export const updateRole_TYPE = function() {
  return 'put'
}
export const updateRoleURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteRoleById
 * url: deleteRoleByIdURL
 * method: deleteRoleById_TYPE
 * raw_url: deleteRoleById_RAW_URL
 * @param id - 角色ID
 */
export const deleteRoleById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteRoleById_RAW_URL = function() {
  return '/api/roles/{id}'
}
export const deleteRoleById_TYPE = function() {
  return 'delete'
}
export const deleteRoleByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateRolePatch
 * url: updateRolePatchURL
 * method: updateRolePatch_TYPE
 * raw_url: updateRolePatch_RAW_URL
 * @param body - 角色实体参数
 * @param id - 角色ID
 */
export const updateRolePatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateRolePatch_RAW_URL = function() {
  return '/api/roles/{id}'
}
export const updateRolePatch_TYPE = function() {
  return 'patch'
}
export const updateRolePatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: disableRoleById
 * url: disableRoleByIdURL
 * method: disableRoleById_TYPE
 * raw_url: disableRoleById_RAW_URL
 * @param id - 角色id
 */
export const disableRoleById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableRoleById_RAW_URL = function() {
  return '/api/roles/{id}/disable'
}
export const disableRoleById_TYPE = function() {
  return 'put'
}
export const disableRoleByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: enableRoleById
 * url: enableRoleByIdURL
 * method: enableRoleById_TYPE
 * raw_url: enableRoleById_RAW_URL
 * @param id - 角色id
 */
export const enableRoleById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableRoleById_RAW_URL = function() {
  return '/api/roles/{id}/enable'
}
export const enableRoleById_TYPE = function() {
  return 'put'
}
export const enableRoleByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: setPermissions
 * url: setPermissionsURL
 * method: setPermissions_TYPE
 * raw_url: setPermissions_RAW_URL
 * @param body - 权限信息列表
 * @param id - 角色id
 */
export const setPermissions = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/roles/{id}/permissions'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const setPermissions_RAW_URL = function() {
  return '/api/roles/{id}/permissions'
}
export const setPermissions_TYPE = function() {
  return 'put'
}
export const setPermissionsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/roles/{id}/permissions'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为user信息，失败：code!=0
 * request: userInfo
 * url: userInfoURL
 * method: userInfo_TYPE
 * raw_url: userInfo_RAW_URL
 */
export const userInfo = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const userInfo_RAW_URL = function() {
  return '/api/user'
}
export const userInfo_TYPE = function() {
  return 'get'
}
export const userInfoURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: userChangePassword
 * url: userChangePasswordURL
 * method: userChangePassword_TYPE
 * raw_url: userChangePassword_RAW_URL
 * @param body - 用户修改密码视图实体
 */
export const userChangePassword = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/change-password'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const userChangePassword_RAW_URL = function() {
  return '/api/user/change-password'
}
export const userChangePassword_TYPE = function() {
  return 'put'
}
export const userChangePasswordURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/change-password'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserMessages
* url: listUserMessagesURL
* method: listUserMessages_TYPE
* raw_url: listUserMessages_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchIsLook - 查询条件:是否查看，等于
     * @param searchSendTimeBegin - 查询条件:发送时间始，大于等于
     * @param searchSendTimeEnd - 查询条件:发送时间止，小于等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserMessages = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/messages'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchIsLook'] !== undefined) {
    queryParameters['search_isLook'] = parameters['searchIsLook']
  }
  if (parameters['searchSendTimeBegin'] !== undefined) {
    queryParameters['search_sendTimeBegin'] = parameters['searchSendTimeBegin']
  }
  if (parameters['searchSendTimeEnd'] !== undefined) {
    queryParameters['search_sendTimeEnd'] = parameters['searchSendTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserMessages_RAW_URL = function() {
  return '/api/user/messages'
}
export const listUserMessages_TYPE = function() {
  return 'get'
}
export const listUserMessagesURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/messages'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchIsLook'] !== undefined) {
    queryParameters['search_isLook'] = parameters['searchIsLook']
  }
  if (parameters['searchSendTimeBegin'] !== undefined) {
    queryParameters['search_sendTimeBegin'] = parameters['searchSendTimeBegin']
  }
  if (parameters['searchSendTimeEnd'] !== undefined) {
    queryParameters['search_sendTimeEnd'] = parameters['searchSendTimeEnd']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: batchDeleteUserMessageByIds
 * url: batchDeleteUserMessageByIdsURL
 * method: batchDeleteUserMessageByIds_TYPE
 * raw_url: batchDeleteUserMessageByIds_RAW_URL
 * @param body - 用户消息id数组
 */
export const batchDeleteUserMessageByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/messages/batch-delete'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchDeleteUserMessageByIds_RAW_URL = function() {
  return '/api/user/messages/batch-delete'
}
export const batchDeleteUserMessageByIds_TYPE = function() {
  return 'post'
}
export const batchDeleteUserMessageByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/messages/batch-delete'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: batchReadUserMessageByIds
 * url: batchReadUserMessageByIdsURL
 * method: batchReadUserMessageByIds_TYPE
 * raw_url: batchReadUserMessageByIds_RAW_URL
 * @param body - 用户消息id数组
 */
export const batchReadUserMessageByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/messages/batch-read'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchReadUserMessageByIds_RAW_URL = function() {
  return '/api/user/messages/batch-read'
}
export const batchReadUserMessageByIds_TYPE = function() {
  return 'post'
}
export const batchReadUserMessageByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/messages/batch-read'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadUserMessageById
 * url: loadUserMessageByIdURL
 * method: loadUserMessageById_TYPE
 * raw_url: loadUserMessageById_RAW_URL
 * @param id - ID
 */
export const loadUserMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserMessageById_RAW_URL = function() {
  return '/api/user/messages/{id}'
}
export const loadUserMessageById_TYPE = function() {
  return 'get'
}
export const loadUserMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteUserMessageById
 * url: deleteUserMessageByIdURL
 * method: deleteUserMessageById_TYPE
 * raw_url: deleteUserMessageById_RAW_URL
 * @param id - ID
 */
export const deleteUserMessageById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/messages/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteUserMessageById_RAW_URL = function() {
  return '/api/user/messages/{id}'
}
export const deleteUserMessageById_TYPE = function() {
  return 'delete'
}
export const deleteUserMessageByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/messages/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listOrgAdditionalUsers
* url: listOrgAdditionalUsersURL
* method: listOrgAdditionalUsers_TYPE
* raw_url: listOrgAdditionalUsers_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchMobile - 查询条件:白名单手机号，模糊匹配
     * @param searchOrganizationId - 查询条件:组织结构ID，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listOrgAdditionalUsers = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-additional-users'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listOrgAdditionalUsers_RAW_URL = function() {
  return '/api/user/organization-additional-users'
}
export const listOrgAdditionalUsers_TYPE = function() {
  return 'get'
}
export const listOrgAdditionalUsersURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-additional-users'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: batchDeleteOrgAdditionalUserByIds
 * url: batchDeleteOrgAdditionalUserByIdsURL
 * method: batchDeleteOrgAdditionalUserByIds_TYPE
 * raw_url: batchDeleteOrgAdditionalUserByIds_RAW_URL
 * @param body - 白名单用户id数组
 */
export const batchDeleteOrgAdditionalUserByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-additional-users/batch-delete'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchDeleteOrgAdditionalUserByIds_RAW_URL = function() {
  return '/api/user/organization-additional-users/batch-delete'
}
export const batchDeleteOrgAdditionalUserByIds_TYPE = function() {
  return 'post'
}
export const batchDeleteOrgAdditionalUserByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-additional-users/batch-delete'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteOrgAdditionalUserById
 * url: deleteOrgAdditionalUserByIdURL
 * method: deleteOrgAdditionalUserById_TYPE
 * raw_url: deleteOrgAdditionalUserById_RAW_URL
 * @param id - 用户ID
 */
export const deleteOrgAdditionalUserById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-additional-users/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteOrgAdditionalUserById_RAW_URL = function() {
  return '/api/user/organization-additional-users/{id}'
}
export const deleteOrgAdditionalUserById_TYPE = function() {
  return 'delete'
}
export const deleteOrgAdditionalUserByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-additional-users/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: createOrganizationAdditionalUser
 * url: createOrganizationAdditionalUserURL
 * method: createOrganizationAdditionalUser_TYPE
 * raw_url: createOrganizationAdditionalUser_RAW_URL
 * @param mobile - mobile
 */
export const createOrganizationAdditionalUser = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-additional-users/{mobile}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{mobile}', `${parameters['mobile']}`)
  if (parameters['mobile'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: mobile'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createOrganizationAdditionalUser_RAW_URL = function() {
  return '/api/user/organization-additional-users/{mobile}'
}
export const createOrganizationAdditionalUser_TYPE = function() {
  return 'post'
}
export const createOrganizationAdditionalUserURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-additional-users/{mobile}'
  path = path.replace('{mobile}', `${parameters['mobile']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的列表，失败：code!=200
* request: listUserChargings
* url: listUserChargingsURL
* method: listUserChargings_TYPE
* raw_url: listUserChargings_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchBeginTimeEnd - 查询条件:充电开始时间止，小于等于
     * @param searchBeginTimeStart - 查询条件:充电开始时间始，大于等于
     * @param searchBinStatus - 查询条件:仓门状态，精确匹配
     * @param searchBusiness - 查询条件:业务状态用于充电订单查询，精确匹配
     * @param searchBusinessState - 查询条件:业务状态，精确匹配
     * @param searchCabinetCode - 查询条件:充电柜编码，模糊匹配
     * @param searchChargingType - 查询条件:充电方式，精确匹配
     * @param searchNetworkId - 查询条件:场站ID，等于
     * @param searchOrganizationId - 查询条件:组织机构ID，精确匹配
     * @param searchSerialNumber - 查询条件:交易流水号，精确匹配
     * @param searchTerminalType - 查询条件:终端类型，精确匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserChargings = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-chargings'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchBeginTimeEnd'] !== undefined) {
    queryParameters['search_beginTimeEnd'] = parameters['searchBeginTimeEnd']
  }
  if (parameters['searchBeginTimeStart'] !== undefined) {
    queryParameters['search_beginTimeStart'] = parameters['searchBeginTimeStart']
  }
  if (parameters['searchBinStatus'] !== undefined) {
    queryParameters['search_binStatus'] = parameters['searchBinStatus']
  }
  if (parameters['searchBusiness'] !== undefined) {
    queryParameters['search_business'] = parameters['searchBusiness']
  }
  if (parameters['searchBusinessState'] !== undefined) {
    queryParameters['search_businessState'] = parameters['searchBusinessState']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchChargingType'] !== undefined) {
    queryParameters['search_chargingType'] = parameters['searchChargingType']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchSerialNumber'] !== undefined) {
    queryParameters['search_serialNumber'] = parameters['searchSerialNumber']
  }
  if (parameters['searchTerminalType'] !== undefined) {
    queryParameters['search_terminalType'] = parameters['searchTerminalType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserChargings_RAW_URL = function() {
  return '/api/user/organization-chargings'
}
export const listUserChargings_TYPE = function() {
  return 'get'
}
export const listUserChargingsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-chargings'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchBeginTimeEnd'] !== undefined) {
    queryParameters['search_beginTimeEnd'] = parameters['searchBeginTimeEnd']
  }
  if (parameters['searchBeginTimeStart'] !== undefined) {
    queryParameters['search_beginTimeStart'] = parameters['searchBeginTimeStart']
  }
  if (parameters['searchBinStatus'] !== undefined) {
    queryParameters['search_binStatus'] = parameters['searchBinStatus']
  }
  if (parameters['searchBusiness'] !== undefined) {
    queryParameters['search_business'] = parameters['searchBusiness']
  }
  if (parameters['searchBusinessState'] !== undefined) {
    queryParameters['search_businessState'] = parameters['searchBusinessState']
  }
  if (parameters['searchCabinetCode'] !== undefined) {
    queryParameters['search_cabinetCode'] = parameters['searchCabinetCode']
  }
  if (parameters['searchChargingType'] !== undefined) {
    queryParameters['search_chargingType'] = parameters['searchChargingType']
  }
  if (parameters['searchNetworkId'] !== undefined) {
    queryParameters['search_networkId'] = parameters['searchNetworkId']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchSerialNumber'] !== undefined) {
    queryParameters['search_serialNumber'] = parameters['searchSerialNumber']
  }
  if (parameters['searchTerminalType'] !== undefined) {
    queryParameters['search_terminalType'] = parameters['searchTerminalType']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: positive
 * url: positiveURL
 * method: positive_TYPE
 * raw_url: positive_RAW_URL
 * @param id - id
 */
export const positive = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-chargings/positive'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['id'] !== undefined) {
    queryParameters['id'] = parameters['id']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const positive_RAW_URL = function() {
  return '/api/user/organization-chargings/positive'
}
export const positive_TYPE = function() {
  return 'get'
}
export const positiveURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-chargings/positive'
  if (parameters['id'] !== undefined) {
    queryParameters['id'] = parameters['id']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为信息，失败：code!=0
 * request: loadUserChargingById
 * url: loadUserChargingByIdURL
 * method: loadUserChargingById_TYPE
 * raw_url: loadUserChargingById_RAW_URL
 * @param id - ID
 */
export const loadUserChargingById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/user/organization-chargings/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserChargingById_RAW_URL = function() {
  return '/api/user/organization-chargings/{id}'
}
export const loadUserChargingById_TYPE = function() {
  return 'get'
}
export const loadUserChargingByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/user/organization-chargings/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：
成功：code=200，data对象为包含分页信息的用户支付订单分账信息表列表，失败：code!=200
* request: listUserPayProfitsharings
* url: listUserPayProfitsharingsURL
* method: listUserPayProfitsharings_TYPE
* raw_url: listUserPayProfitsharings_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchAccount - 查询条件:分账接收方，等于
     * @param searchAmount - 查询条件:分账金额，等于
     * @param searchCreateTime - 查询条件:分账创建时间，等于
     * @param searchDetail - 查询条件:分账明细单号，等于
     * @param searchFailReason - 查询条件:分账失败原因，等于
     * @param searchFinishTime - 查询条件:分账完成时间，等于
     * @param searchResult - 查询条件:分账结果，等于
     * @param searchUserPay - 查询条件:用户支付订单ID，关联T_USER_PAY.ID，等于
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUserPayProfitsharings = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/userPayProfitsharings'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAccount'] !== undefined) {
    queryParameters['search_account'] = parameters['searchAccount']
  }
  if (parameters['searchAmount'] !== undefined) {
    queryParameters['search_amount'] = parameters['searchAmount']
  }
  if (parameters['searchCreateTime'] !== undefined) {
    queryParameters['search_createTime'] = parameters['searchCreateTime']
  }
  if (parameters['searchDetail'] !== undefined) {
    queryParameters['search_detail'] = parameters['searchDetail']
  }
  if (parameters['searchFailReason'] !== undefined) {
    queryParameters['search_failReason'] = parameters['searchFailReason']
  }
  if (parameters['searchFinishTime'] !== undefined) {
    queryParameters['search_finishTime'] = parameters['searchFinishTime']
  }
  if (parameters['searchResult'] !== undefined) {
    queryParameters['search_result'] = parameters['searchResult']
  }
  if (parameters['searchUserPay'] !== undefined) {
    queryParameters['search_userPay'] = parameters['searchUserPay']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUserPayProfitsharings_RAW_URL = function() {
  return '/api/userPayProfitsharings'
}
export const listUserPayProfitsharings_TYPE = function() {
  return 'get'
}
export const listUserPayProfitsharingsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/userPayProfitsharings'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchAccount'] !== undefined) {
    queryParameters['search_account'] = parameters['searchAccount']
  }
  if (parameters['searchAmount'] !== undefined) {
    queryParameters['search_amount'] = parameters['searchAmount']
  }
  if (parameters['searchCreateTime'] !== undefined) {
    queryParameters['search_createTime'] = parameters['searchCreateTime']
  }
  if (parameters['searchDetail'] !== undefined) {
    queryParameters['search_detail'] = parameters['searchDetail']
  }
  if (parameters['searchFailReason'] !== undefined) {
    queryParameters['search_failReason'] = parameters['searchFailReason']
  }
  if (parameters['searchFinishTime'] !== undefined) {
    queryParameters['search_finishTime'] = parameters['searchFinishTime']
  }
  if (parameters['searchResult'] !== undefined) {
    queryParameters['search_result'] = parameters['searchResult']
  }
  if (parameters['searchUserPay'] !== undefined) {
    queryParameters['search_userPay'] = parameters['searchUserPay']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createUserPayProfitsharing
 * url: createUserPayProfitsharingURL
 * method: createUserPayProfitsharing_TYPE
 * raw_url: createUserPayProfitsharing_RAW_URL
 * @param body - 用户支付订单分账信息表实体参数
 */
export const createUserPayProfitsharing = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/userPayProfitsharings'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createUserPayProfitsharing_RAW_URL = function() {
  return '/api/userPayProfitsharings'
}
export const createUserPayProfitsharing_TYPE = function() {
  return 'post'
}
export const createUserPayProfitsharingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/userPayProfitsharings'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为用户支付订单分账信息表信息，失败：code!=0
 * request: loadUserPayProfitsharingById
 * url: loadUserPayProfitsharingByIdURL
 * method: loadUserPayProfitsharingById_TYPE
 * raw_url: loadUserPayProfitsharingById_RAW_URL
 * @param id - 用户支付订单分账信息表ID
 */
export const loadUserPayProfitsharingById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/userPayProfitsharings/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserPayProfitsharingById_RAW_URL = function() {
  return '/api/userPayProfitsharings/{id}'
}
export const loadUserPayProfitsharingById_TYPE = function() {
  return 'get'
}
export const loadUserPayProfitsharingByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/userPayProfitsharings/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateUserPayProfitsharing
 * url: updateUserPayProfitsharingURL
 * method: updateUserPayProfitsharing_TYPE
 * raw_url: updateUserPayProfitsharing_RAW_URL
 * @param body - 用户支付订单分账信息表实体参数
 * @param id - 用户支付订单分账信息表ID
 */
export const updateUserPayProfitsharing = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/userPayProfitsharings/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateUserPayProfitsharing_RAW_URL = function() {
  return '/api/userPayProfitsharings/{id}'
}
export const updateUserPayProfitsharing_TYPE = function() {
  return 'put'
}
export const updateUserPayProfitsharingURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/userPayProfitsharings/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，失败：code!=0
 * request: deleteUserPayProfitsharingById
 * url: deleteUserPayProfitsharingByIdURL
 * method: deleteUserPayProfitsharingById_TYPE
 * raw_url: deleteUserPayProfitsharingById_RAW_URL
 * @param id - 用户支付订单分账信息表ID
 */
export const deleteUserPayProfitsharingById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/userPayProfitsharings/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteUserPayProfitsharingById_RAW_URL = function() {
  return '/api/userPayProfitsharings/{id}'
}
export const deleteUserPayProfitsharingById_TYPE = function() {
  return 'delete'
}
export const deleteUserPayProfitsharingByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/userPayProfitsharings/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：username,name,gender.code,gender.name,email,mobile,title.code,
title.name,organization.id,organization.name,department.id,
department.name,isEnable,createTime
成功：code=200，data对象为包含分页信息的用户列表，失败：code!=200
* request: listUsers
* url: listUsersURL
* method: listUsers_TYPE
* raw_url: listUsers_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchApplicationId - 查询条件:应用id，精确匹配
     * @param searchCreateDateBegin - 查询条件:创建日期起，格式yyyy-mm-dd
     * @param searchCreateDateEnd - 查询条件:创建日期止，格式yyyy-mm-dd
     * @param searchDepartmentId - 查询条件:所属部门ID，精确匹配
     * @param searchDepartmentIds - 查询条件:所属部门ID数组，精确匹配
     * @param searchDepartmentName - 查询条件:所属部门名称，模糊匹配
     * @param searchEmail - 查询条件:邮箱，模糊匹配
     * @param searchGender - 查询条件:性别代码，对应性别字典，精确匹配
     * @param searchIsEnable - 查询条件:是否启用，0：否，1：是，精确匹配
     * @param searchMobile - 查询条件:手机号码，模糊匹配
     * @param searchName - 查询条件:姓名，模糊查询
     * @param searchOrganizationId - 查询条件:所属组织机构ID，精确匹配
     * @param searchOrganizationIds - 查询条件:所属组织机构ID数组，精确匹配
     * @param searchOrganizationName - 查询条件:所属组织机构名称，模糊匹配
     * @param searchRoleId - 查询条件:角色id，精确匹配
     * @param searchTitle - 查询条件:岗位代码，对应岗位字典，精确匹配
     * @param searchUsername - 查询条件:用户名称，模糊查询
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listUsers = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDepartmentId'] !== undefined) {
    queryParameters['search_departmentId'] = parameters['searchDepartmentId']
  }
  if (parameters['searchDepartmentIds'] !== undefined) {
    queryParameters['search_departmentIds'] = parameters['searchDepartmentIds']
  }
  if (parameters['searchDepartmentName'] !== undefined) {
    queryParameters['search_departmentName'] = parameters['searchDepartmentName']
  }
  if (parameters['searchEmail'] !== undefined) {
    queryParameters['search_email'] = parameters['searchEmail']
  }
  if (parameters['searchGender'] !== undefined) {
    queryParameters['search_gender'] = parameters['searchGender']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchOrganizationIds'] !== undefined) {
    queryParameters['search_organizationIds'] = parameters['searchOrganizationIds']
  }
  if (parameters['searchOrganizationName'] !== undefined) {
    queryParameters['search_organizationName'] = parameters['searchOrganizationName']
  }
  if (parameters['searchRoleId'] !== undefined) {
    queryParameters['search_roleId'] = parameters['searchRoleId']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['searchUsername'] !== undefined) {
    queryParameters['search_username'] = parameters['searchUsername']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listUsers_RAW_URL = function() {
  return '/api/users'
}
export const listUsers_TYPE = function() {
  return 'get'
}
export const listUsersURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchApplicationId'] !== undefined) {
    queryParameters['search_applicationId'] = parameters['searchApplicationId']
  }
  if (parameters['searchCreateDateBegin'] !== undefined) {
    queryParameters['search_createDateBegin'] = parameters['searchCreateDateBegin']
  }
  if (parameters['searchCreateDateEnd'] !== undefined) {
    queryParameters['search_createDateEnd'] = parameters['searchCreateDateEnd']
  }
  if (parameters['searchDepartmentId'] !== undefined) {
    queryParameters['search_departmentId'] = parameters['searchDepartmentId']
  }
  if (parameters['searchDepartmentIds'] !== undefined) {
    queryParameters['search_departmentIds'] = parameters['searchDepartmentIds']
  }
  if (parameters['searchDepartmentName'] !== undefined) {
    queryParameters['search_departmentName'] = parameters['searchDepartmentName']
  }
  if (parameters['searchEmail'] !== undefined) {
    queryParameters['search_email'] = parameters['searchEmail']
  }
  if (parameters['searchGender'] !== undefined) {
    queryParameters['search_gender'] = parameters['searchGender']
  }
  if (parameters['searchIsEnable'] !== undefined) {
    queryParameters['search_isEnable'] = parameters['searchIsEnable']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['searchName'] !== undefined) {
    queryParameters['search_name'] = parameters['searchName']
  }
  if (parameters['searchOrganizationId'] !== undefined) {
    queryParameters['search_organizationId'] = parameters['searchOrganizationId']
  }
  if (parameters['searchOrganizationIds'] !== undefined) {
    queryParameters['search_organizationIds'] = parameters['searchOrganizationIds']
  }
  if (parameters['searchOrganizationName'] !== undefined) {
    queryParameters['search_organizationName'] = parameters['searchOrganizationName']
  }
  if (parameters['searchRoleId'] !== undefined) {
    queryParameters['search_roleId'] = parameters['searchRoleId']
  }
  if (parameters['searchTitle'] !== undefined) {
    queryParameters['search_title'] = parameters['searchTitle']
  }
  if (parameters['searchUsername'] !== undefined) {
    queryParameters['search_username'] = parameters['searchUsername']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=201，失败：code!=201
 * request: createUser
 * url: createUserURL
 * method: createUser_TYPE
 * raw_url: createUser_RAW_URL
 * @param body - 用户实体参数
 */
export const createUser = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const createUser_RAW_URL = function() {
  return '/api/users'
}
export const createUser_TYPE = function() {
  return 'post'
}
export const createUserURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: batchDeleteUserByIds
 * url: batchDeleteUserByIdsURL
 * method: batchDeleteUserByIds_TYPE
 * raw_url: batchDeleteUserByIds_RAW_URL
 * @param body - 用户id数组
 */
export const batchDeleteUserByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/batch-delete'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('post', domain + path, body, queryParameters, form, config)
}
export const batchDeleteUserByIds_RAW_URL = function() {
  return '/api/users/batch-delete'
}
export const batchDeleteUserByIds_TYPE = function() {
  return 'post'
}
export const batchDeleteUserByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/batch-delete'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: batchDisableUserByIds
 * url: batchDisableUserByIdsURL
 * method: batchDisableUserByIds_TYPE
 * raw_url: batchDisableUserByIds_RAW_URL
 * @param body - 用户id数组
 */
export const batchDisableUserByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/batch-disable'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const batchDisableUserByIds_RAW_URL = function() {
  return '/api/users/batch-disable'
}
export const batchDisableUserByIds_TYPE = function() {
  return 'put'
}
export const batchDisableUserByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/batch-disable'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: batchEnableUserByIds
 * url: batchEnableUserByIdsURL
 * method: batchEnableUserByIds_TYPE
 * raw_url: batchEnableUserByIds_RAW_URL
 * @param body - 用户id数组
 */
export const batchEnableUserByIds = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/batch-enable'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const batchEnableUserByIds_RAW_URL = function() {
  return '/api/users/batch-enable'
}
export const batchEnableUserByIds_TYPE = function() {
  return 'put'
}
export const batchEnableUserByIdsURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/batch-enable'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
* 排序属性：username,name,mobile,createTime
成功：code=200，data对象为包含分页信息的用户列表，失败：code!=200
* request: listChargingUsers
* url: listChargingUsersURL
* method: listChargingUsers_TYPE
* raw_url: listChargingUsers_RAW_URL
     * @param pageNumber - 分页号码,从0开始
     * @param pageSize - 分页大小
     * @param searchMobile - 查询条件:手机号码，模糊匹配
     * @param sort - 排序规则，格式: 字段名[,asc|desc]，默认升序，支持多字段排序
*/
export const listChargingUsers = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/charging-users'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const listChargingUsers_RAW_URL = function() {
  return '/api/users/charging-users'
}
export const listChargingUsers_TYPE = function() {
  return 'get'
}
export const listChargingUsersURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/charging-users'
  if (parameters['pageNumber'] !== undefined) {
    queryParameters['pageNumber'] = parameters['pageNumber']
  }
  if (parameters['pageSize'] !== undefined) {
    queryParameters['pageSize'] = parameters['pageSize']
  }
  if (parameters['searchMobile'] !== undefined) {
    queryParameters['search_mobile'] = parameters['searchMobile']
  }
  if (parameters['sort'] !== undefined) {
    queryParameters['sort'] = parameters['sort']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: loadUserById
 * url: loadUserByIdURL
 * method: loadUserById_TYPE
 * raw_url: loadUserById_RAW_URL
 * @param id - 用户ID
 */
export const loadUserById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const loadUserById_RAW_URL = function() {
  return '/api/users/{id}'
}
export const loadUserById_TYPE = function() {
  return 'get'
}
export const loadUserByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateUser
 * url: updateUserURL
 * method: updateUser_TYPE
 * raw_url: updateUser_RAW_URL
 * @param body - 用户实体参数
 * @param id - 用户ID
 */
export const updateUser = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const updateUser_RAW_URL = function() {
  return '/api/users/{id}'
}
export const updateUser_TYPE = function() {
  return 'put'
}
export const updateUserURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: deleteUserById
 * url: deleteUserByIdURL
 * method: deleteUserById_TYPE
 * raw_url: deleteUserById_RAW_URL
 * @param id - 用户ID
 */
export const deleteUserById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('delete', domain + path, body, queryParameters, form, config)
}
export const deleteUserById_RAW_URL = function() {
  return '/api/users/{id}'
}
export const deleteUserById_TYPE = function() {
  return 'delete'
}
export const deleteUserByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: updateUserPatch
 * url: updateUserPatchURL
 * method: updateUserPatch_TYPE
 * raw_url: updateUserPatch_RAW_URL
 * @param body - 用户实体参数
 * @param id - 用户ID
 */
export const updateUserPatch = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['body'] !== undefined) {
    body = parameters['body']
  }
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('patch', domain + path, body, queryParameters, form, config)
}
export const updateUserPatch_RAW_URL = function() {
  return '/api/users/{id}'
}
export const updateUserPatch_TYPE = function() {
  return 'patch'
}
export const updateUserPatchURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: disableUserById
 * url: disableUserByIdURL
 * method: disableUserById_TYPE
 * raw_url: disableUserById_RAW_URL
 * @param id - 用户ID
 */
export const disableUserById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}/disable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const disableUserById_RAW_URL = function() {
  return '/api/users/{id}/disable'
}
export const disableUserById_TYPE = function() {
  return 'put'
}
export const disableUserByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}/disable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=0，data对象为结果数据，失败：code!=0
 * request: enableUserById
 * url: enableUserByIdURL
 * method: enableUserById_TYPE
 * raw_url: enableUserById_RAW_URL
 * @param id - 用户ID
 */
export const enableUserById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}/enable'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const enableUserById_RAW_URL = function() {
  return '/api/users/{id}/enable'
}
export const enableUserById_TYPE = function() {
  return 'put'
}
export const enableUserByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}/enable'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，data对象为结果数据，失败：code!=0
 * request: resetUserPasswordById
 * url: resetUserPasswordByIdURL
 * method: resetUserPasswordById_TYPE
 * raw_url: resetUserPasswordById_RAW_URL
 * @param id - 用户ID
 */
export const resetUserPasswordById = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/users/{id}/reset-password'
  let body
  let queryParameters = {}
  let form = {}
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters['id'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: id'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('put', domain + path, body, queryParameters, form, config)
}
export const resetUserPasswordById_RAW_URL = function() {
  return '/api/users/{id}/reset-password'
}
export const resetUserPasswordById_TYPE = function() {
  return 'put'
}
export const resetUserPasswordByIdURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/users/{id}/reset-password'
  path = path.replace('{id}', `${parameters['id']}`)
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 微信消息推送TOKEN验证
 * request: checkToken
 * url: checkTokenURL
 * method: checkToken_TYPE
 * raw_url: checkToken_RAW_URL
 */
export const checkToken = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/weChat/checkToken'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const checkToken_RAW_URL = function() {
  return '/api/weChat/checkToken'
}
export const checkToken_TYPE = function() {
  return 'get'
}
export const checkTokenURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/weChat/checkToken'
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}
/**
 * 成功：code=200，失败：code!=200
 * request: getAccessGrant
 * url: getAccessGrantURL
 * method: getAccessGrant_TYPE
 * raw_url: getAccessGrant_RAW_URL
 * @param jsCode - jsCode
 */
export const getAccessGrant = function(parameters = {}) {
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  const config = parameters.$config
  let path = '/api/weChat/grant'
  let body
  let queryParameters = {}
  let form = {}
  if (parameters['jsCode'] !== undefined) {
    queryParameters['jsCode'] = parameters['jsCode']
  }
  if (parameters['jsCode'] === undefined) {
    return Promise.reject(new Error('Missing required  parameter: jsCode'))
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    });
  }
  return request('get', domain + path, body, queryParameters, form, config)
}
export const getAccessGrant_RAW_URL = function() {
  return '/api/weChat/grant'
}
export const getAccessGrant_TYPE = function() {
  return 'get'
}
export const getAccessGrantURL = function(parameters = {}) {
  let queryParameters = {}
  const domain = parameters.$domain ? parameters.$domain : getDomain()
  let path = '/api/weChat/grant'
  if (parameters['jsCode'] !== undefined) {
    queryParameters['jsCode'] = parameters['jsCode']
  }
  if (parameters.$queryParameters) {
    Object.keys(parameters.$queryParameters).forEach(function(parameterName) {
      queryParameters[parameterName] = parameters.$queryParameters[parameterName]
    })
  }
  let keys = Object.keys(queryParameters)
  return domain + path + (keys.length > 0 ? '?' + (keys.map(key => key + '=' + encodeURIComponent(queryParameters[key])).join('&')) : '')
}

export const decodeMobile_RAW_URL = function() {
  return '/api/weChat/mobile'
}
export const decodeMobile_TYPE = function() {
  return 'get'
}